冰楓論壇

標題: vb6 sendKeys 問題 [打印本頁]

作者: 我璦你、    時間: 2014-9-4 20:29
標題: vb6 sendKeys 問題
我想要用 sendkeys "{F5}"

至今發現  ((執行的時候  他寫 "你沒有執行的權限 " <<大概這樣寫

請問為啥會這樣˙˙

If Check1.Value = 1 Then
            Timer1.Enabled = True
        End If
        If Check1.Value = 0 Then
            Timer1.Enabled = False
            End If

哪裡出問題阿
作者: cuandy01    時間: 2014-9-4 21:22
直接編譯出來測試~
作者: asdf70813    時間: 2014-9-5 09:58
你想用鍵盤熱見吧
自己去GOOGLE
還有你寫法太XX了
改成這樣
寫法1
If Check1.Value = 1 Then
Timer1.Enabled = True
Else
Timer1.Enabled = False
End If

寫法2
If Check1.Value = 1 Then Timer1.Enabled = True
If Check1.Value = 0 Then Timer1.Enabled = False

寫法3
If Check1.Value = 1 Then Timer1.Enabled = True : If Check1.Value = 0 Then Timer1.Enabled = False



其實都差不多的東西
  1. If Check1.Value = 1 Then
  2.             Timer1.Enabled = True
  3.         End If
  4.         If Check1.Value = 0 Then
  5.             Timer1.Enabled = False
  6.             End If
複製代碼
還有不是這段 程式碼的問題
這段本身不會報錯
要問 問題請貼出  詳細程式碼..




歡迎光臨 冰楓論壇 (https://bingfong.com/) Powered by 冰楓