看板 Programming 關於我們 聯絡資訊
※ 引述《leon329 (從缺)》之銘言: > > 對哦~~ 完全忽略keydown按按鍵就會動了....@@" > 印象中,計概的英文大小寫轉成數字是不一樣的 > 原來keycode 和 ASCII 完全不一樣呀 ^^!! > > 大大說的沒錯~~~是可行的方式.. > 現在重點在於 ~~要怎麼用 for 來 call 各個 command1 ~ 19_click了 @@" 你該不會要做十九個command 吧... 那我建議你用成元件陣列 Private Sub Command1_Click(index As Integer) Call aa(index) End Sub Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode >= 65 And KeyCode <= 75 Then Call aa(KeyCode - 64) End If End Sub Private Sub aa(index) Print index End Sub 亂寫的...自己看看是不是你要的.... 在你按出 a ~ i 會有動做...但...j以後就不會動了 -- ┌─────KKCITY─────┐ KK免/費/撥/接 bbs.kkcity.com.tw 電話(1):4491999 電話(2):4058-6000 └──From:220.229.203.163 ──┘帳號:kkcity 密碼:kkcity --