hi; I am new to vb.net. As in vb6 to load a form we write; load form1 form1.show What is the syntax to do the same in VB.NET ***************************************************** on form1 a command button has been placed. now I want to load form2 whenever this command button is clicked. **************************************************** Can any one help me… _________________ Regards Abhijeet

Typically it is better to instantiate the object when needed rather than
in the declaration:

Dim TFrm as Form2

Set TFrm = New Form2

David

Private Sub MenuItem11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem11.Click
Dim DataForm1 As New DataForm1
DataForm1.Show()
End Sub

buy a book our download some free samples
to study on

Hi,

Use this Code:

Dim TFrm as New Form2
TFrm.Show

Regards
Veena