VB编一个 7 位数电脑摇奖程序?

2025-04-16 04:33:52
推荐回答(1个)
回答1:

private Sub Form_KeyDown(KeyCode Ss Integer,Shift As Integer)
Static i
i=i+1
If i Mod 10 = 0 Then
Print Chr$(KeyCode);"--";Hex$(KeyCode);"";
Print;Print
ElseI KeyCode = 13 Then
i = 0
Print:Print:Print
Else
Print Chr$(KeyCode);"--";Hex$(KeyCode);"";
End If
End Sub

参考文献:VB程序设计