Dim i As Integer
Private comboBox1 As System.Windows.Forms.ComboBox
Private Sub crear_combobox()
i = i + 1
Me.comboBox1 = New System.Windows.Forms.ComboBox
Me.comboBox1.Name = "busqueda" & i
Me.comboBox1.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right)
Me.comboBox1.DropDownWidth = 280
Me.comboBox1.Items.AddRange(New Object() {"Item 1", "Item 2", "Item 3", "Item 4", "Item 5"})
Me.comboBox1.Location = New System.Drawing.Point((8), (100 * i))
Me.comboBox1.Size = New System.Drawing.Size(280, 21)
Me.comboBox1.TabIndex = 7
Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.comboBox1})
Me.Text = "ComboBox Sample"
End Sub
____________________________________________________________________
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
crear_combobox()
End Sub