That is what I assumed would do the job Lazy, but when I run the program the textbox remains blank.
I have a variable, First, publically declared as a string.
And I have a textbox named txtFirst
I tried the txtFirst.text = First but when the program runs the textbox remains blank.
Maybe I have something wrong in how I declared the variable initially.
If you've dimmed them as Public in a Form Module they are public to the form. They can be accessed as Form1.First.
If your form where the variable is Dim'd is Form1, then in Form2 you can use:
Text1.Text = Form1.First
If you want them to be immediately visible evrywhere, then Dim them as Public in a .Bas module (Code module)
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'People who live in windowed environments shouldn't cast pointers.'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.