共用方式為


InkPicture.TabStop Property

InkPicture.TabStop Property

Gets or sets a value indicating whether the user can give the focus to this control by pressing the TAB key.

Definition

Visual Basic .NET Public Property TabStop As Boolean
C# public bool TabStop { get; set; }
Managed C++ public: __property bool* get_TabStop();
public: __property void set_TabStop(bool*);

Property Value

System.Boolean. A value indicating whether the user can give the focus to this control by pressing the TAB key.

This property is read/write.

true Default. The user can give the focus to the control by pressing the TAB key.
false The user can not give the focus to the control by pressing the TAB key.

Remarks

When the user presses the TAB key, the input focus is set to the next control in the tab order. Controls with the TabStop Leave Site property value of false are not included in the collection of controls in the tab order. The tab order can be manipulated by setting the control's TabIndex Leave Site property value.

Examples

[C#]

This C# example creates two TextBox Leave Site controls, theTextBox1 and theTextBox2, and an InkPicture control, theInkPicture. The TabStop property is set to false on theInkPicture. When a user presses the TAB key, focus moves from theTextBox1 to theTextBox2, bypassing theInkPicture.

using Microsoft.Ink;

//. . .

theTextBox1 = new TextBox();
theInkPicture = new InkPicture();
theTextBox2 = new TextBox();

//. . .

theInkPicture.TabStop = false;

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example creates two TextBox Leave Site controls, theTextBox1 and theTextBox2, and an InkPicture control, theInkPicture. The TabStop property is set to false on theInkPicture. When a user presses the TAB key, focus moves from theTextBox1 to theTextBox2, bypassing theInkPicture.

Imports Microsoft.Ink

//. . .

Dim theTextBox1 As New TextBox()
Dim theInkPicture As New InkPicture()
Dim theTextBox2 = As TextBox()

//. . .

theInkPicture.TabStop = false

See Also