Description
To add an item to combo box control, this function overloads 2 variants like the following:
Public Overloads Sub AddItem(ByVal item As String)
Public Overloads Sub AddItem(ByVal values As List(Of String))
Parameters
Parameter | Description |
item | Item as string |
values | Items as list |
Note
We recommended using the second overloads method for better performance.
Sample
Public Sub main() Dim com As new VTLGeneral.VTLControls.CChartObjectCombo("com1") Dim frm As new VTLGeneral.VTLForm("form1") Dim lbl As VTLGeneral.VTLControls.CChartObjectLabel Dim com2 As new VTLGeneral.VTLControls.CChartObjectCombo("com2") lbl= new VTLGeneral.VTLControls.CChartObjectLabel("b1") Dim btn As VTLGeneral.VTLControls.CChartObjectButton btn= new VTLGeneral.VTLControls.CChartObjectButton("btn1") frm.AddVTLControl(lbl) frm.AddVTLControl(btn) frm.AddVTLControl(com) frm.AddVTLControl(com2) frm.show() frm.Width = "8130" btn.Width = "5100" com2.Top = "2160" com2.Left = "3240" com.AddItem("text1") com.AddItem("text2") com.AddItem("text3") End Sub
See Also