以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- ListBox 选择第一行后 为什么显示空值? (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=60157) |
-- 作者:tesia255 -- 发布时间:2014/11/19 11:53:00 -- ListBox 选择第一行后 为什么显示空值? 如图所示:
代码是这样写的:
SelectedIndexChanged 事件
|
-- 作者:有点甜 -- 发布时间:2014/11/19 11:54:00 -- Dim gg As String Dim lst As WinForm.ListBox = e.Form.Controls("ListBox1") If lst.SelectedIndex >= 0 Then gg = lst.SelectedValue End If MessageBox.Show(gg)
|
-- 作者:tesia255 -- 发布时间:2014/11/19 11:56:00 -- 回复好快!
谢谢!谢谢! |