How to Public Sub controlling forms?

  • Thread starter Marcos Beccar Varela
  • Start date
M

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
 
E

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top