المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to pass variables to a new form?



C# Programming
11-11-2009, 02:40 PM
Hi everyone.


I've got a listBox and a list of elements in it.
I've got another windows form, and it will be created after an item in the listBox is double clicked.

What I'm asking is;

I want to "read" the name of the element from the list box, and then fill the new form according to this information.

How can I pass the listBox1's selected Item's text to the new form?

can anybody help?