Jack,
In VB.NET, forms and controls are objects just like regular objects. So,
you'll need to instantiate the form before you can call Show on the form.
Similarly, you'll need an instance of the form to access the controls of
that form.
Dim frm As New frmColorTool
frm.Show() ' Or frm.ShowDialog() for modal
Debug.Write(frm.txtTextBox.Text)
Note that in VB.NET, since the default access modifier for controls is
Friend, you can access the controls of a form from another form only if both
forms are in the same project.
hope that helps..
Imran.
"Jack Russell" <ja***@norubbish.tpg.com.au> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
I thought that I was a reasonable programmer but I am having some very
basic problems with .net
1) In vb3 to vb6 to use another form I said
frmColorTool.Show
What is the correct syntax in vb.net
2) how do I adress the controls in another form
Again I used to say
Form1!control.text
How do I do this now?
--
Remove norubbish to reply direct
Jack Russell