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

How to Public Sub controlling forms?

P: n/a


Hello to all.
I need to control some objects from a module like the old VB 6 style.
Can anyone help on how to do this?
For example, I need that when BUTTON1 es pressed in FORM1.. with a TEXTBOX
this calls a PUBLIC SUB in a module (or substitute) and and this shows
creates a new instance of another form FORM2, and shows the FORM1.TEXTBOX1
text on FROM2.TEXTBOX.

Is there a simple way of doing this?
Canīt I refer to forms similar to VB6.. ?
Like this?
projectname.form2.textbox.text = projectname.form1.textbox.text

Thank you all and sorry for my awfull english
Manek
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Marcos,

Search Google for "Working with Multiple Forms in Visual Basic.net"
"Duncan Mackenzie" and you his paper at Microsoft.com is what you are
looking for plus. The URL is unbearably long and this will get you there
directly.

Ed
"Marcos Beccar Varela" <marcosbv@ga m a c o m .com.ar> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...


Hello to all.
I need to control some objects from a module like the old VB 6 style.
Can anyone help on how to do this?
For example, I need that when BUTTON1 es pressed in FORM1.. with a TEXTBOX
this calls a PUBLIC SUB in a module (or substitute) and and this shows
creates a new instance of another form FORM2, and shows the
FORM1.TEXTBOX1 text on FROM2.TEXTBOX.

Is there a simple way of doing this?
Canīt I refer to forms similar to VB6.. ?
Like this?
projectname.form2.textbox.text = projectname.form1.textbox.text

Thank you all and sorry for my awfull english
Manek

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.