ToolStripButton.AutoToolTip プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Dim instance As ToolStripButton Dim value As Boolean value = instance.AutoToolTip instance.AutoToolTip = value
/** @property */ public boolean get_AutoToolTip () /** @property */ public void set_AutoToolTip (boolean value)
既定の ToolTip テキストを表示する場合は true。それ以外の場合は false。既定値は true です。


ToolStripButton に自動的に ToolTip テキストを表示する機能を無効にし、カスタムの ToolTipText を設定するコード例を、次に示します。
Imports System Imports System.Collections.Generic Imports System.ComponentModel Imports System.Data Imports System.Drawing Imports System.Windows.Forms Public Class Form1 Inherits Form Private toolStripButton1 As ToolStripButton Private toolStrip1 As ToolStrip Public Sub New() InitializeComponent() End Sub 'New <STAThread()> _ Shared Sub Main() Application.EnableVisualStyles() Application.Run(New Form1()) End Sub 'Main Private Sub InitializeComponent() Me.toolStrip1 = New System.Windows.Forms.ToolStrip() Me.toolStripButton1 = New System.Windows.Forms.ToolStripButton() Me.toolStrip1.SuspendLayout() Me.SuspendLayout() ' ' toolStrip1 ' Me.toolStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.toolStripButton1}) Me.toolStrip1.Location = New System.Drawing.Point(0, 0) Me.toolStrip1.Name = "toolStrip1" Me.toolStrip1.TabIndex = 0 Me.toolStrip1.Text = "toolStrip1" ' ' toolStripButton1 Me.toolStripButton1.AutoToolTip = False Me.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text Me.toolStripButton1.Name = "toolStripButton1" Me.toolStripButton1.Text = "Button1" Me.toolStripButton1.ToolTipText = "ToolTip for Button1." ' Form1 ' Me.ClientSize = New System.Drawing.Size(292, 273) Me.Controls.Add(toolStrip1) Me.Name = "Form1" Me.toolStrip1.ResumeLayout(False) Me.ResumeLayout(False) Me.PerformLayout() End Sub 'InitializeComponent End Class 'Form1
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() { InitializeComponent(); } [STAThread] static void Main() { Application.EnableVisualStyles(); Application.Run(new Form1()); } private void InitializeComponent() { this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); this.toolStrip1.SuspendLayout(); this.SuspendLayout(); // // toolStrip1 // this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripButton1}); 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.Controls.Add(this.toolStrip1); this.Name = "Form1"; this.toolStrip1.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); } } }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からToolStripButton.AutoToolTip プロパティを検索する場合は、下記のリンクをクリックしてください。

- ToolStripButton.AutoToolTip プロパティのページへのリンク