Question Using tab controls

Nic

Registered User.
Local time
Today, 22:59
Joined
Jan 15, 2012
Messages
47
Hi,
Iv got a various tab controls on my form (form1), each tab page has different text boxes on it. On tab 'Page1' i have a 'Textbox1' - when i close another form that i use for data input, i want to automatically enter data into 'TextBox1'. Before i put my text boxes into a tab control, i used this code and it worked well:

Forms.Form1.TextBox1 = "MyText"

But now 'TextBox1' is on a tab control, how do i reword my code so it works again??

Suggestions greatly appreciated,
 
how do i reword my code so it works again??
You don't . Tabs have no bearing on how you refer to controls.
 
?? Thats odd,
Since i put my text boxes onto a tab control, its not working?
Im getting Runtime error 438.
Thanks for the help!
 
What is runtime error 438? In any case your predicament is not related to a textbox being inside /outside a tab but something else.
 
Thanks for your help with this!
Just found a rather embarrassing mistake, and that was that my form name was wrong!!
Its been bugging me for hours!
 

Users who are viewing this thread

Back
Top Bottom