Home All Groups Group Topic Archive Search About

How to Public Sub controlling forms?

Author
30 Mar 2005 9:37 PM
Marcos Beccar Varela
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

Author
30 Mar 2005 10:15 PM
Ed Bitzer
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


Show quoteHide quote
"Marcos Beccar Varela" <marcosbv@ga m a c o m .com.ar> wrote in message
news:%23%23qrECXNFHA.1176@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
>