|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to Public Sub controlling forms?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 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 >
Mixing VB variables with standard text to output text file
Refresh DataSet - please Help Me :-( Get Variable Out of Arraylist ReInstantiate an Object? using StringBuilder class for concatenation? foxpro table hosed up when called 2nd time from VB.net Polymorphic XML Serialized Array Creating array on the fly as a parameter to a subroutine? SaveFileDialog how to convert... |
|||||||||||||||||||||||