Originally Posted by dlakmal76
Post split form original thread.
Can anybody tell me what the correct code is for loading and unloading different forms in VB.Net. It is not the same as VB6.
i am really confused.
I am guessing you didn't like the answer from the original thread (which by the way WAS the correct answer). So here it is again:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim frmChild As New Form2
' To symbolize some work that needs to be done
Public Class Form2
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
I am also attaching a sample VB.NET 2005 Project for your enjoyment.