FormComboBoxControl.add(String) Method

Definition

Adds a string value to the combo box list.

public:
 virtual void add(System::String ^ _string);
public virtual void add (string _string);
abstract member add : string -> unit
override this.add : string -> unit
Public Overridable Sub add (_string As String)

Parameters

_string
String

The string value to add to the combo box list.

Remarks

The string is added to the end of the list. If you want to put the string in a specific position in the list, use the insert method.

The following example shows how to add a string to the combo box list.

this.add("maple"); 
this.add("oak"); 
this.add("pine");

Applies to