Friday, July 31, 2009

How can I access a variable from another form in Visual Basic?

I want to access a variable from my first form in second form. How can i do this? Sample code would be helpful, thank you.

How can I access a variable from another form in Visual Basic?
Easiest way would be to create a public variable in a module which you would be able to reference throughout your project.
Reply:if the variable you are trying to access is public, then use this:


FormName.variableName
Reply:check out http://www.planet-source-code.com


No comments:

Post a Comment