ToolStripTextBox.AcceptsTab Property
.NET Framework 4.5
Gets or sets a value indicating whether pressing the TAB key in a multiline text box control types a TAB character in the control instead of moving the focus to the next control in the tab order.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System.Booleantrue if users can enter tabs in a multiline text box using the TAB key; false if pressing the TAB key moves the focus. The default is false.
The following code example demonstrates the syntax for setting various ToolStripTextBox common property settings, including the AcceptsTab property .
// This code example demonstrates the syntax for setting // various ToolStripTextBox properties. // toolStripTextBox1.AcceptsReturn = true; toolStripTextBox1.AcceptsTab = true; toolStripTextBox1.AutoCompleteCustomSource.AddRange(new string[] { "This is line one.", "Second line.", "Another line."}); toolStripTextBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; toolStripTextBox1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource; toolStripTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; toolStripTextBox1.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper; toolStripTextBox1.HideSelection = false; toolStripTextBox1.MaxLength = 32000; toolStripTextBox1.Name = "toolStripTextBox1"; toolStripTextBox1.ShortcutsEnabled = false; toolStripTextBox1.Size = new System.Drawing.Size(100, 25); toolStripTextBox1.Text = "STRING1\r\nSTRING2\r\nSTRING3\r\nSTRING4"; toolStripTextBox1.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.