--
老师好:
e.Form.Controls("ComboBox1").ComboList = bms.GetComboListString("窗口归类")
上面是窗口AfterLoad事件代码
Dim cmb As WinForm.ComboBox = e.Sender
Dim str As String = e.Form.Controls("ComboBox1").Value
cmb.ComboList = bms.GetComboListString("窗口名", "窗口归类 = \'" & str & "\'")
上面是组合框2Enter事件代码
Dim cmb As WinForm.ComboBox = e.Sender
Dim str As String = e.Form.Controls("ComboBox2").Value
cmb.ComboList = bms.GetComboListString("窗口名1", "窗口名 = \'" & str & "\'")
如果组合框2没有数据就在组合框1中获取数据信息。