此主题相关图片如下:qq截图20120801141218.png
我想选择了银行账户后自动把账号填入 下面的TEXTBOX中,如果写代码吗.我没有弄出来,,,,,,看帮助里有一个是关于下拉目录树的,,,,
combobox的selectedindexchange的代码如下:
Dim cb As WinForm.ComboBox = e.Form.Controls("ComboBox1")
Dim tb As WinForm.TextBox = e.Form.Controls("TextBox2")
Dim dr As DataRow = cb.SelectedItem
If dr IsNot Nothing Then
tb.Value =dr("银行账号")
End If
enter的代码如下...
Dim cmd As New SQLCommand
cmd.C
Dim dt As DataTable
cmd.CommandText = "SELECT DISTINCT 开户行名 From {开户行}"
dt = cmd.ExecuteReader()
e.Sender.ComboList= dt.GetComboListString("开户行名")
请指点....