我已经使用 Visual Basic 2010 Express 大约 2 周了,我正在尝试制作一款 RPG 游戏。直到现在一切都很顺利。但我无法让我的标签显示进度条值。smoebody可以帮帮我吗?
Public Class Form1
Public Sub ProgressBar1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ProgressBar1.Click
Label2.Text = ProgressBar1.Value & ("")
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
HouseBuy.show()
Me.Hide()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
HouseSell.show()
Me.Hide()
End Sub
Public Sub Label2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label2.Click
Label2.Text = ProgressBar1.Value & ("")
If ProgressBar1.Value = 1000 Then
MsgBox("You cant get any more money")
ElseIf ProgressBar1.Value = 0 Then
MsgBox("You are out of money")
End If
End Sub
Private Sub Label5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
mymap.Show()
Me.Hide()
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class