VB设计程序时发现二义性名称怎么修改?
PrivateSubCommand1_Click()IfIndex=0ThenLabel1.Visible=TrueElseEndEndIfEndSubPrivateSu...
Private Sub Command1_Click()
If Index = 0 Then
Label1.Visible = True
Else
End
End If
End Sub
Private Sub Form_Load()
Label1.Caption = "欢迎来到VB大世界"
Label1.Font = "黑体"
Label1.FontSize = 10
Label1.ForeColor = vbRed
Label1.Visible = False
End Sub
Private Sub Command2_Click()
If Index = 0 Then
Label2.Visible = True
Else
End
End If
End Sub
Private Sub Form_Load()
Label2.Caption = "欢迎来到VB大世界"
Label2.Font = "宋体"
Label2.FontSize = 10
Label2.ForeColor = vbGreen
Label2.Visible = False
End Sub
这个是我做的显示文字的工程。我运行时说 发现二义性名称:Form_Load 我知道是出现了两个 Form_Load 请问怎么修改? 展开
If Index = 0 Then
Label1.Visible = True
Else
End
End If
End Sub
Private Sub Form_Load()
Label1.Caption = "欢迎来到VB大世界"
Label1.Font = "黑体"
Label1.FontSize = 10
Label1.ForeColor = vbRed
Label1.Visible = False
End Sub
Private Sub Command2_Click()
If Index = 0 Then
Label2.Visible = True
Else
End
End If
End Sub
Private Sub Form_Load()
Label2.Caption = "欢迎来到VB大世界"
Label2.Font = "宋体"
Label2.FontSize = 10
Label2.ForeColor = vbGreen
Label2.Visible = False
End Sub
这个是我做的显示文字的工程。我运行时说 发现二义性名称:Form_Load 我知道是出现了两个 Form_Load 请问怎么修改? 展开
1个回答
展开全部
把两个并脊Form_Load代码合并
Private Sub Command1_Click()
If Index = 0 Then
Label1.Visible = True
Else
End
End If
End Sub
Private Sub Form_Load()
Label1.Caption = "欢迎来到VB大世界"
Label1.Font = "黑体"
Label1.FontSize = 10
Label1.ForeColor = vbRed
Label1.Visible = False
Label2.Caption = "欢迎来到VB大世界喊慧"
Label2.Font = "宋体"郑蔽答
Label2.FontSize = 10
Label2.ForeColor = vbGreen
Label2.Visible = False
End Sub
Private Sub Command2_Click()
If Index = 0 Then
Label2.Visible = True
Else
End
End If
End Sub
Private Sub Command1_Click()
If Index = 0 Then
Label1.Visible = True
Else
End
End If
End Sub
Private Sub Form_Load()
Label1.Caption = "欢迎来到VB大世界"
Label1.Font = "黑体"
Label1.FontSize = 10
Label1.ForeColor = vbRed
Label1.Visible = False
Label2.Caption = "欢迎来到VB大世界喊慧"
Label2.Font = "宋体"郑蔽答
Label2.FontSize = 10
Label2.ForeColor = vbGreen
Label2.Visible = False
End Sub
Private Sub Command2_Click()
If Index = 0 Then
Label2.Visible = True
Else
End
End If
End Sub
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询