 2006-09-04 19:42
	    2006-09-04 19:42
  应该是这样:
Public Class frmLogin
    Private Sub btnOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOk.Click
         Dim frmMain as new Form2
         frmMain.Show()
         Me.Finalize()
    End Sub
End Class
 2006-09-05 17:35
	    2006-09-05 17:35
  这是甚么意思
 2006-09-06 10:21
	    2006-09-06 10:21
   2006-09-06 22:50
	    2006-09-06 22:50
  何意?
小弟初学vb.net
请高手讲细点
 2006-09-07 12:40
	    2006-09-07 12:40
  没有那么麻烦,用下面这个程序段(vb):
在登录frmLogin窗体中:
   Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
        Me.Close()
        frmMain.Visible = True
    End Sub
     Private Sub frmLogin_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        frmMain.Visible = False
    End Sub
在主窗体frmMain中:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        frmLogin.Show()
    End Sub



 2006-09-09 09:08
	    2006-09-09 09:08