1请教 当按着任意一个键位时 再按其他时键无反映 如KeyPress : Case了 65 就不能Case 68.....83 等等其他键
2 VB中的音乐播放控件在哪里呀? 要能播放MP3或WMA的
3 因为程序是给别人写的 程序里有音乐 图片文件 要别人也能听音乐看图片 这样的路径要怎么设置呀
Option Explicit
Dim OneHasPress As Boolean
Dim TheKey1 As Integer, TheKey2 As Integer
Private Sub Form_KeyPress(KeyAscii As Integer)
If Not OneHasPress Then
TheKey1 = KeyAscii
TheKey2 = KeyAscii - 32
Select Case KeyAscii
Case 97
Print "97"
Case 98
Print "98"
Case Else
Print KeyAscii
End Select
End If
If Not OneHasPress Then OneHasPress = True
End Sub
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = TheKey1 Or KeyCode = TheKey2 Then OneHasPress = False
End Sub
Private Sub Form_Load()
OneHasPress = False
End Sub