CheckBoxList的AutoPostBack屬性設(shè)成True,然后把顯示選擇結(jié)果的腳本寫在SelectedIndexChanged事件中
在廣饒等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場(chǎng)前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供網(wǎng)站建設(shè)、成都網(wǎng)站制作 網(wǎng)站設(shè)計(jì)制作按需網(wǎng)站制作,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),成都品牌網(wǎng)站建設(shè),成都營(yíng)銷網(wǎng)站建設(shè),成都外貿(mào)網(wǎng)站制作,廣饒網(wǎng)站建設(shè)費(fèi)用合理。
屬性修改后沒有任何設(shè)置,當(dāng)然不會(huì)改變,改改
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
你看看需要哪一個(gè)?
這個(gè)如果你用編輯項(xiàng)去寫的話就相當(dāng)麻煩了
你可以用代碼去定義 放在 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
不知是否有確切回答你的問題,我學(xué)VB也不久 以后可以一起討論
我百度hi的帳號(hào)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
'''''''選擇多項(xiàng)
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