CheckBoxList的AutoPostBack属性设成True,然后把显示选择结果的脚本写在SelectedIndexChanged事件中
在广饶等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供网站建设、成都网站制作 网站设计制作按需网站制作,公司网站建设,企业网站建设,成都品牌网站建设,成都营销网站建设,成都外贸网站制作,广饶网站建设费用合理。
属性修改后没有任何设置,当然不会改变,改改
Set(ByVal value As String)
Text_1 = value
Me.Label1.Text = Text_1
End Set
Set(ByVal value As String)
Text_2 = value
Me.Label2.Text = Text_2
End Set
在工具箱的“指针”组里有;
OpenFileDialog
SaveFileDialog
FolderBrowserDialog
你看看需要哪一个?
这个如果你用编辑项去写的话就相当麻烦了
你可以用代码去定义 放在 form l oad 事件中 方便多了
代码如下:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim n As Integer
For i = 1960 To 2060
ComboBox1.Items.Add(n)
Next
End Sub
不知是否有确切回答你的问题,我学VB也不久 以后可以一起讨论
我百度hi的帐号QJW630751892
昵称java
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
MessageBox.Show(ListBox1.SelectedItem.ToString)
End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
For i As Integer = 0 To 10
ListBox1.Items.Add(i.ToString)
Next
End Sub
'''''''选择多项
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
For i As Integer = 0 To 10
ListBox1.Items.Add(i.ToString)
Next
ListBox1.SelectionMode = SelectionMode.MultiSimple
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim item
For Each item In ListBox1.SelectedItems
MessageBox.Show(item.ToString)
Next
End Sub