By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,326 Members | 881 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,326 IT Pros & Developers. It's quick & easy.

Question on variable scope...

P: n/a
CMI
Hello,

Is it possible in VB.NET to set a variable in one Windows form and have it
available in another form (i.e., a Global variable)? I've tried using
Public, Shared, etc., but cannot seem to reference the variable I set in one
form in a second form.

Thanks!

Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"CMI" <BB******@hotmail.com> schrieb

Is it possible in VB.NET to set a variable in one Windows form and
have it available in another form (i.e., a Global variable)? I've
tried using Public, Shared, etc., but cannot seem to reference the
variable I set in one form in a second form.


If you have a reference to the Form, you should be able to access it's
properties.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.