3个回答
展开全部
Private Sub Command1_Click()
If Text1.Text = "abc" And Text2.Text = "123" Then '自己改姓名毁笑和学配乱号
MsgBox "欢纤卖含迎你"
Else
MsgBox "非法用户"
End If
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
End Sub
Private Sub Form_Load()
Label1.Caption = "&User"
Label2.Caption = "&Password"
Command1.Caption = "确定[&E]"
Command2.Caption = "取消[&S]"
Text1.Text = ""
Text2.Text = ""
End Sub
If Text1.Text = "abc" And Text2.Text = "123" Then '自己改姓名毁笑和学配乱号
MsgBox "欢纤卖含迎你"
Else
MsgBox "非法用户"
End If
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
End Sub
Private Sub Form_Load()
Label1.Caption = "&User"
Label2.Caption = "&Password"
Command1.Caption = "确定[&E]"
Command2.Caption = "取消[&S]"
Text1.Text = ""
Text2.Text = ""
End Sub
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Option Explicit
Private Sub Command1_Click()
If Text1 = "zhangsan" And Text2 = "颂纯12" Then
MsgBox "斗坦欢迎你", vbInformation
Else
MsgBox "非法用户", vbInformation
End If
End Sub
Private Sub Command2_Click()
Text1 = "野销咐"
Text2 = ""
Text1.SetFocus
End Sub
Private Sub Form_Load()
Label1.Caption = "&User"
Label2.Caption = "Password"
Command1.Caption = "确定(&E)"
Command2.Caption = "取消(&S)"
Text1 = ""
Text2 = ""
End Sub
Private Sub Command1_Click()
If Text1 = "zhangsan" And Text2 = "颂纯12" Then
MsgBox "斗坦欢迎你", vbInformation
Else
MsgBox "非法用户", vbInformation
End If
End Sub
Private Sub Command2_Click()
Text1 = "野销咐"
Text2 = ""
Text1.SetFocus
End Sub
Private Sub Form_Load()
Label1.Caption = "&User"
Label2.Caption = "Password"
Command1.Caption = "确定(&E)"
Command2.Caption = "取消(&S)"
Text1 = ""
Text2 = ""
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Command1_Click()
If Text1.Text = "001" And Text2.Text = "100" Then '自己改姓名和学号
form2.show
unload me
Else
MsgBox "用户或没迟笑密码错误,请从新输入枯含"
text1.text=""旦指
text2.text=""
End If
end sub
Private Sub Form_Load()
Label1.Caption = "&User"
Label2.Caption = "&Password"
Command1.Caption = "确定[&E]"
Command2.Caption = "取消[&S]"
Text1.Text = ""
Text2.Text = ""
End Sub
Private Sub Command2_Click()
end
End Sub
If Text1.Text = "001" And Text2.Text = "100" Then '自己改姓名和学号
form2.show
unload me
Else
MsgBox "用户或没迟笑密码错误,请从新输入枯含"
text1.text=""旦指
text2.text=""
End If
end sub
Private Sub Form_Load()
Label1.Caption = "&User"
Label2.Caption = "&Password"
Command1.Caption = "确定[&E]"
Command2.Caption = "取消[&S]"
Text1.Text = ""
Text2.Text = ""
End Sub
Private Sub Command2_Click()
end
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询