This property sets or retrieves the "PenWidth" textbox of the ToolBarStandard control.

[Visual Basic]Public Property TextBoxPenWidth As System.Windows.Forms.ToolStripTextBox
[C#]public System.Windows.Forms.ToolStripTextBox TextBoxPenWidth {get; set;}

Property Value

A value of type System.Windows.Forms.ToolStripTextBox

Explanation

The TextBoxPenWidth property sets or retrieves the "PenWidth" textbox of the ToolBarStandard. The "PenWidth" textbox is a ToolStripTextBox control. By using the TextBoxPenWidth property, you can change "PenWidth" textbox settings, generate events, etc. See code examples below.

Examples

(1) To change the background color of the "PenWidth" textbox

[Visual Basic.NET]
     ToolBarStandard1.TextBoxPenWidth.BackColor = Color.FromArgb(255, 255, 192)

[Visual C#.NET]
     toolBarStandard1.TextBoxPenWidth.BackColor=Color.FromArgb(255, 255, 192);

(2) To retrieve the "PenWidth" textbox click event

[Visual Basic.NET]
    * Set the delegate for the TextBoxPenWidth click event in the FormLoad event.
    AddHandler ToolBarStandard1.TextBoxPenWidth.Click, AddressOf TextBoxPenWidth_Click

    'Event Handler delegate
    Private Sub TextBoxPenWidth_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        'Here is where you place code that will be executed when this event fires
    End Sub

[Visual C#.NET]
    * Set the delegate for the TextBoxPenWidth click event in the FormLoad event.
    toolBarStandard1.TextBoxPenWidth.Click += new EventHandler(TextBoxPenWidth_Click);

    //Event Handler delegate
    private void TextBoxPenWidth_Click(object sender, EventArgs e)
    {
        //Here is where you place code that will be executed when this event fires
    }

See Also

ToolBarStandard Members | Newtone.ImageKit.Win.ToolBarStandard

 

The ImageKit.NET3 is created by Newtone Corporation