• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 313
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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