This documentation is archived and is not being maintained.

ToolStripButton.AutoToolTip Property

Gets or sets a value indicating whether default or custom ToolTip text is displayed on the ToolStripButton.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public bool AutoToolTip { get; set; }

Property Value

Type: System.Boolean
true if default ToolTip text is displayed; otherwise, false. The default is true.

Set the AutoToolTip property to false to display custom ToolTipText on a ToolStripItem.

The following code example turns off the automatic ToolTip text for a ToolStripButton and sets custom ToolTipText.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Windows.Forms;

namespace WindowsApplication7
	public class Form1 : Form
		private ToolStripButton toolStripButton1;
		private ToolStrip toolStrip1;
		public Form1()
		static void Main()
			Application.Run(new Form1());

		private void InitializeComponent()
			this.toolStrip1 = new System.Windows.Forms.ToolStrip();
			this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
			// toolStrip1
			this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
			this.toolStrip1.Location = new System.Drawing.Point(0, 0);
			this.toolStrip1.Name = "toolStrip1";
			this.toolStrip1.TabIndex = 0;
			this.toolStrip1.Text = "toolStrip1";
			// toolStripButton1
			this.toolStripButton1.AutoToolTip = false;
			this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
			this.toolStripButton1.Name = "toolStripButton1";
			this.toolStripButton1.Text = "Button1";
			this.toolStripButton1.ToolTipText = "ToolTip for Button1.";
			// Form1
			this.ClientSize = new System.Drawing.Size(292, 273);
			this.Name = "Form1";


.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.