• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 310
  • Last Modified:

Loading a Form in VB.net

This the code I use in vb 6.
Load form1

How would I use this in vb.net
0
jm1576
Asked:
jm1576
  • 2
1 Solution
 
planoczCommented:

    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub
0
 
jm1576Author Commented:
This is what I am trying to load a form from a different form and show the form.

this is in vb6.

   Load frmGroups
    frmGroups.Show

in vb.net I am getting an error.
0
 
planoczCommented:
sample...

 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim f As New Form
        f.Location = New Point(Me.Left + 200, Me.Top + 100)
        f.Show()

    End Sub
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now