有三个 ComboBox控件 自定义项目提前设置好了 在e.Form.Controls("tongdaomingchengComboBox") 的SelectedIndexChanged事件中写了如下代码:
Dim cmb As WinForm.ComboBox =e.Form.Controls("tongdaomingchengComboBox")
Dim tdjc As WinForm.ComboBox =e.Form.Controls("tongdaojianchengComboBox")
Dim zxt As WinForm.ComboBox =e.Form.Controls("zixitongComboBox")
If cmb.Value IsNot Nothing Then
If cmb.Value = "海科融通" Then
tdjc.ComboList = "Hkrt"
tdjc.Value =""
tdjc.SelectedText = "Hkrt"
zxt.ComboList = "传统POS|QPOS"
zxt.Value =""
zxt.SelectedText = "传统POS"
tdjc.writevalue
zxt.writevalue
ElseIf cmb.Value = "盒子支付"
tdjc.ComboList = "Hzzf"
tdjc.Value =""
tdjc.SelectedText ="Hzzf"
zxt.ComboList = "1.0系统|2.0系统"
zxt.Value =""
zxt.SelectedText = "1.0系统"
tdjc.writevalue
zxt.writevalue
End If
End If
为什么e.Form.Controls("tongdaomingchengComboBox") 选好项目后e.Form.Controls("tongdaojianchengComboBox")会随着变化,而e.Form.Controls("zixitongComboBox")控件不发变化,必须再选一次才变化呀