|
-
Dec 29th, 2004, 07:16 AM
#1
Thread Starter
Lively Member
accessing vars from different form
Hi guys, going crazy with this:
When I want to open a new form I do something like:
Dim newform as fromclass1 = new formclass1
newform.show()
if I want to change a textbox in newform I can do:
newform.textbox.text= "nice"
Now, what if I want to access a public element (such as a combobox or textbox) in the original form (from where newform opened) from the form newform?
I just want to do the same I did above to access newform.textbox but inverse. The form from where newform was called already exists (obviously) and it was called firstform, but doing, from newform:
firstform.textbox doesn't work,
not even if I declare firstform as public.
Hope I explained it clearly enough.
Thanks
Last edited by nacho2; Jan 4th, 2005 at 08:48 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|