[求助]窗口动态项目列表出现错误提示[已解决] Post By:2012/1/13 21:58:00 [只看该作者]
根据帮助案例 “窗口动态项目列表”,我希望将颜色列自动输入
于是在combox2的selectedindexchanged事件中写下这样的代码
以下内容为程序代码:
1 Dim cm As WinForm.ComboBox = e.Form.Controls("ComboBox2") 2 Dim dr As DataRow = cm.SelectedItem 3 If dr IsNot Nothing Then 4 e.Form.Controls("TextBox1").Value = dr("颜色") 5 End If