TOOLBARTEXTBOX Element | ToolbarTextBox Object

Adds a ToolbarTextBox element to a Toolbar.

Syntax

HTML <namespace:TOOLBARTEXTBOX ... >

Possible Values

namespace Prefix that associates a custom tag with an XML namespace. This prefix is set using the XMLNS attribute of the html tag.

Remarks

To enable users to enter a maximum number of characters, set the MAXLENGTH attribute on the TOOLBARTEXTBOX.

This element is a block element.

This element requires a closing tag.

Members Table

The following table lists the members exposed by the ToolbarTextBox object.

Attribute Property Description
DEFAULTSTYLE Sets or retrieves a value that indicates the default style for the element.
MAXLENGTH Sets or retrieves a value that indicates the maximum number of characters that the user can enter.
Event Description
onchange Fires when an OPTION element is selected in a ToolbarDropDownList or when the ToolbarTextBox has changed and loses focus.
Method Description
getAttribute Retrieves the value of the specified attribute.
getType Retrieves the type of item.
remove Removes the item from the Toolbar object.
setAttribute Sets the value of the specified attribute.

Example

The following example shows how to use the TOOLBARTEXTBOX element to add a text box to a Toolbar.


<HTML xmlns:TOOLBAR>
<?import namespace="TOOLBAR" implementation="toolbar.htc">

<BODY>

<TOOLBAR:TOOLBAR STYLE="display:inline" ID="oToolBar">

<TOOLBAR:TOOLBARLABEL TEXT="TextBox:"/>
<TOOLBAR:TOOLBARTEXTBOX VALUE="Default Value"
DEFAULTSTYLE="background-color:#3366CC"
/>
</TOOLBAR:TOOLBAR> 

</BODY>
</HTML>

Code example: https://samples.msdn.microsoft.com/workshop/samples/webcontrols/toolbar/toolbarTextBox.htm

Applies To

TOOLBAR

See Also

Internet Explorer WebControls, About the Toolbar WebControl