以下是引用桂圆在2006-12-27 22:18:09的发言:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If UserName.Text = "admin" And PassWord.Text = "admin" Then
Dim mf as new MainForm()
LoginForm.Hide()
mf.Show()
Else
MessageBox.Show("错误的用户名或密码")
End If
End Sub
代码 就象上面的 只是需要连接上数据库
你自己再想想
[此贴子已经被作者于2006-12-28 21:23:26编辑过]