简单VB 程序 请高手帮下忙看看是那错了,而且 Command1的哪一步看着不是很明白请帮忙解释下
PrivateSubCommand1_Click()Label1.Caption="姓名"&Text1.Text&vbCrLfLabel2.Caption=Label2....
Private Sub Command1_Click()
Label1.Caption = "姓名" & Text1.Text & vbCrLf
Label2.Caption = Label2.Caption & "性别" & Combol.Text & vbCrLf
Label3.Caption = Label3.Caption & "职称" & Combo2.Text & vbCrLf
Label4.Caption = Label4.Caption & "学历" & Combo3.Text & vbCrLf
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Combo1.AddItem "男"
Combo1.AddItem "女"
Combo2.AddItem "教授"
Combo2.AddItem "副教授"
Combo2.AddItem "讲师"
Combo2.AddItem "助教"
Combo3.AddItem "博士研究生"
Combo3.AddItem "硕士研究生"
Combo3.AddItem "大学"
Combo3.AddItem "大专"
Combo3.AddItem "高中"
End Sub 展开
Label1.Caption = "姓名" & Text1.Text & vbCrLf
Label2.Caption = Label2.Caption & "性别" & Combol.Text & vbCrLf
Label3.Caption = Label3.Caption & "职称" & Combo2.Text & vbCrLf
Label4.Caption = Label4.Caption & "学历" & Combo3.Text & vbCrLf
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Combo1.AddItem "男"
Combo1.AddItem "女"
Combo2.AddItem "教授"
Combo2.AddItem "副教授"
Combo2.AddItem "讲师"
Combo2.AddItem "助教"
Combo3.AddItem "博士研究生"
Combo3.AddItem "硕士研究生"
Combo3.AddItem "大学"
Combo3.AddItem "大专"
Combo3.AddItem "高中"
End Sub 展开
3个回答
展开全部
代码错了,要不是测试还真是看不出来,有个1写成l了
Private Sub Command1_Click()
Label1.Caption = "姓名" & Text1.Text & vbCrLf
Label2.Caption = Label2.Caption & "性别" & Combo1.Text & vbCrLf
Label3.Caption = Label3.Caption & "职称" & Combo2.Text & vbCrLf
Label4.Caption = Label4.Caption & "学历" & Combo3.Text & vbCrLf
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Combo1.AddItem "男"
Combo1.AddItem "女"
Combo2.AddItem "教授"
Combo2.AddItem "副教授"
Combo2.AddItem "讲师"
Combo2.AddItem "助教"
Combo3.AddItem "博士研究生"
Combo3.AddItem "硕士研究生"
Combo3.AddItem "大学"
Combo3.AddItem "大专"
Combo3.AddItem "高中"
End Sub
Private Sub Command1_Click()
Label1.Caption = "姓名" & Text1.Text & vbCrLf
Label2.Caption = Label2.Caption & "性别" & Combo1.Text & vbCrLf
Label3.Caption = Label3.Caption & "职称" & Combo2.Text & vbCrLf
Label4.Caption = Label4.Caption & "学历" & Combo3.Text & vbCrLf
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Combo1.AddItem "男"
Combo1.AddItem "女"
Combo2.AddItem "教授"
Combo2.AddItem "副教授"
Combo2.AddItem "讲师"
Combo2.AddItem "助教"
Combo3.AddItem "博士研究生"
Combo3.AddItem "硕士研究生"
Combo3.AddItem "大学"
Combo3.AddItem "大专"
Combo3.AddItem "高中"
End Sub
展开全部
Label2.Caption = Label2.Caption & "性别" & Combol.Text & vbCrLf
你输错了,应该是:
Label2.Caption = Label2.Caption & "性别" & Combo1.Text & vbCrLf
你输错了,应该是:
Label2.Caption = Label2.Caption & "性别" & Combo1.Text & vbCrLf
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
代码没错!
追问
能帮我解释下 Command1 的Click()的意义么
追答
就是按下command1按钮将会发生的事件。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询