以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  [求助]SelectedIndexChanged  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=84052)

--  作者:huhu
--  发布时间:2016/4/22 10:19:00
--  [求助]SelectedIndexChanged

SelectedIndexChanged代码:

Dim kwlb As WinForm.ComboBox = e.Form.Controls("ComboBox1")

If e.Sender.text = "成品库"  Then

    kwlb.text = 30

ElseIf e.sender.text = "外观不良品库"  Then

    kwlb.text = 31

End If


e.Form.Controls("TextBox3").Select-----希望在combobox1选择完,光标自动定位到testbox3文本框上,怎么没反应?


--  作者:大红袍
--  发布时间:2016/4/22 10:47:00
--  

ComboBox,SelectedIndexChanged

 

vars("scd") = True
e.Form.Controls("TextBox1").Select

 

TextBox,Validating

 

static idx As Integer = 0
If idx = 1 Then
    e.cancel = True
    idx = 0
End If
If vars("scd") = True Then
    idx = 1
    e.cancel = True
    vars("scd") = False
End If