Quantcast
Channel: VBForums - API
Viewing all articles
Browse latest Browse all 168

SelectedValueChanged event for DYNAMICALLY created combobox

$
0
0
hi,i am doing some programming using vb 2010, I want to
create a simple SelectedValueChanged event for DYNAMICALLY created combobox
but i just don't know how to do it.
here is the sample code :

Dim CboOr3 As ComboBox
CboOr3 = New ComboBox
CboOr3.Parent = Me
CboOr3.Name = "CboOr3"
CboOr3.Top = 70
CboOr3.Left = 130
CboOr3.Width = 51
CboOr3.Height = 21
CboOr3.Items.Add("0")
CboOr3.Items.Add("1")

AddHandler combobox1.SelectedValueChanged, AddressOf Me.ComboBox_SelectedValueChanged

If CboOr3.Text = 3 Then
MessageBox.Show("selected 3")
End If

Viewing all articles
Browse latest Browse all 168

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>