我在Visual Studio 2010中为使用VB的孩子创建了一个简单的数学游戏。以下是代码
Public Class HSone
Private Sub HSone_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
'Form Properties
Me.ControlBox = False
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.FixedSingle
Me.Text = ""
Me.Size = New System.Drawing.Size(907, 574)
'On load Hide Objects
PictureBox1.Visible = False
PictureBox2.Visible = False
PictureBox3.Visible = False
End Sub
Private Sub Label1_Click(sender As System.Object, e As System.EventArgs) Handles Label1.Click
PictureBox1.Visible = True
End Sub
Private Sub Label2_Click(sender As System.Object, e As System.EventArgs) Handles Label2.Click
PictureBox2.Visible = True
End Sub
Private Sub Label3_Click(sender As System.Object, e As System.EventArgs) Handles Label3.Click
PictureBox3.Visible = True
End Sub
Private Sub Label2_MouseHover(sender As System.Object, e As System.EventArgs) Handles Label3.MouseHover, Label2.MouseHover, Label1.MouseHover
Cursor = Cursors.Hand
End Sub
End Class
当所有图片框现在可见时,如何查看下一个表格? 谢谢!