Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accesing a public var from another Dialog
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00805387
Message ID:
00806181
Views:
24
You need to have a reference of the first form in the second form in order to access the variable in the first form.

Something like this:

Form1 oFrm1 = new Form1();
Form2 oFrm2 = new Form2();

oFrm2.ReferenceToForm1 = oFrm1;


Then you can access the public variable of Form1 from Form2 by this.ReferenceToForm1.PublicVariable
Stephen Lee

--------------------------------
Too much to code
Too little time
--------------------------------
Previous
Reply
Map
View

Click here to load this message in the networking platform