Version

AddTextBox(String,String) Method

Adds an UltraWebToolbar text box to this collection with the specified initial text value and key.
Syntax
'Declaration
 
Public Overloads Function AddTextBox( _
   ByVal text As String, _
   ByVal key As String _
) As TBTextBox
public TBTextBox AddTextBox( 
   string text,
   string key
)

Parameters

text
The text that should initially appear within the TBTextBox.
key
The key value identifying the TBTextBox, it should be unique across this UltraWebToolbar element.

Return Value

The newly created TBTextBox instance, which developers may further customize.
Remarks

Developers should use this method to add a new, dynamically-created TBTextBox to the left-end of the UltraWebToolbar element. The text box's Text property will be initialized to the value given by the text argument.

Use the Insert(Int32,TBObject) method to insert a new instance of TBTextBox before (to the left of) other Toolbar items. When calling Insert, the developer is responsible for creating the TBTextBox instance beforehand, and setting its Text and Key properties afterwards.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also