Re: [VB6 ] command enable的問題
※ 引述《Vanir ( )》之銘言:
: 若是我現在
: 有三個text 分別為 text1, text2, text3
: 一個command 為command1
: 我想要做到當使用者把
: text1.text ,text2.text text3.text裡面都輸入數值之後
: command1.enabled = true
: (初始情況為 false 還沒輸入那三個值之前 我不給使用者按這個鈕)
: 請問該怎麼寫?
: 先謝謝回應的大大了@@~~~
Private Sub Text_Change()
Command1.Enabled = _
(Text1.Text <> "" And Text2.Text <> "" And Text3.Text <>"")
End Sub
Private Sub Text1_Change()
Text_Change()
End Sub
Private Sub Text2_Change()
Text_Change()
End Sub
Private Sub Text3_Change()
Text_Change()
End Sub
--
▃▅▇▆▄ ▆▂▃ `
逝去感情如何能留住,半點癡情遺留殊不易,██▅▇▄▃ ▇▃▂" .
█████████▃i ▁▄▇
更多悽悽慘慘的遭遇…………██▆▃ █▅▆▃ˍ▄*
◢ ▂█▄▇▅▂▌.
我不知道,王~八~蛋~~! ▂▆███ █▄▃ 。fumizuki。Check。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.194.224.174
推
06/10 17:24, , 1F
06/10 17:24, 1F
討論串 (同標題文章)