我有这个代码:
Private Sub key(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If e.KeyValue = Keys.Enter Then
If FuSt = False Then
FuSt = True
My.Computer.Audio.Play(My.Settings.Full)
Else
FuSt = False
My.Computer.Audio.Play(DIRECOTRY)
End If
End If
If e.KeyValue = b1 Then
My.Computer.Audio.Play(SoundsDir & "1.wav")
End If
End Sub
但是当我想玩 b1 (键盘上的 Z 按钮)时,我遇到了这个错误:
从“z”到 Double 的对话是不正确的(有些想法)
你能帮助我吗?