注册 登录
编程论坛 VB6论坛

新手请教问题 关于“未找到方法和数据成员”

cxk208 发布于 2012-08-24 09:22, 432 次点击
我编了一个小程序 实现按钮按下 切换三个图像的亮暗 另一个按钮按下结束程序。默认状态是其中一个图像可见。
Private Sub Command1_Click()
If Image1.Visible = True Then
   Image1.Visible = False
   Image2.Visible = True
ElseIf Image2.Visible = True Then
   Image2.Visible = False
   Image3.Visible = True
Else
   Image3.Visible = False
   Image1.Visible = True
   End If
   
End Sub

Private Sub Command2_Click()
End
End Sub

Private Sub Form_Load()
Image1.Visible = True
Image2.Visible = False
Image3.Visible = False

End Sub
运行完毕 出现标题中所说的问题。。请教
3 回复
#2
Artless2012-08-25 00:04
代码没啥啊
#3
zss4276072012-08-25 14:39
仔细看看Image1、Image2、Image3是否真的存在
#4
cxk2082012-08-28 10:26
找到原因了 正如三楼所说
1