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

Dim instance As ToolTip Dim value As Integer value = instance.ReshowDelay instance.ReshowDelay = value
/** @property */ public int get_ReshowDelay () /** @property */ public void set_ReshowDelay (int value)
移動先のツールヒント ウィンドウが表示されるまでにかかる時間 (ミリ秒単位)。

ReshowDelay プロパティを使用すると、前のツールヒント ウィンドウを表示してから次のツールヒント ウィンドウを表示するまでに ToolTip が待機する時間を短くしたり、長くしたりできます。ツールヒント ウィンドウが初めて表示されるときは、InitialDelay プロパティの値を使用して、そのツールヒント ウィンドウを初めて表示する前に適用する遅延時間が決定されます。ツールヒント ウィンドウが現在表示されており、ツールヒント ウィンドウを表示する別のコントロールにユーザーがポインタを移動した場合は、新しいコントロールのツールヒントが表示されるまでの時間に ReshowDelay プロパティの値が使用されます。ReshowDelay プロパティで指定した遅延を使用するには、前のコントロールのツール ヒント ウィンドウを表示しておく必要があります。それ以外の場合は、InitialDelay プロパティ値が使用されます。
ツール ヒント ウィンドウに一貫した遅延パターンを設定する場合は、AutomaticDelay プロパティを設定します。AutomaticDelay プロパティは、AutoPopDelay、ReshowDelay、InitialDelay の各プロパティを単一の値に基づいた初期値に設定します。AutomaticDelay プロパティを設定するたびに、ReshowDelay プロパティは AutomaticDelay プロパティ値の 1/5 の値に設定されます。AutomaticDelay プロパティを設定すると、既定値をオーバーライドして、個別に ReshowDelay プロパティを設定できます。

ToolTip クラスのインスタンスを作成し、それを作成した場所である Form に、このインスタンスを関連付けるコード例を次に示します。次に、このコードは AutoPopDelay、InitialDelay、ReshowDelay の各遅延プロパティを初期化します。また、ToolTip クラスのインスタンスで ShowAlways プロパティを true に設定して、フォームがアクティブかどうかに関係なく、ツール ヒント テキストが表示されるようにします。最後に、ツール ヒント テキストをフォーム上の 2 つのコントロール Button および CheckBox に関連付けます。このコード例では、コード内で定義されたメソッドが、button1 という名前の Button コントロールおよび checkBox1, という名前の CheckBox コントロールを含む Form 内に配置されており、そのメソッドが Form のコンストラクタから呼び出される必要があります。
' This example assumes that the Form_Load event handling method ' is connected to the Load event of the form. Private Sub Form1_Load(sender As Object, e As System.EventArgs) Handles MyBase.Load ' Create the ToolTip and associate with the Form container. Dim toolTip1 As New ToolTip() ' Set up the delays for the ToolTip. toolTip1.AutoPopDelay = 5000 toolTip1.InitialDelay = 1000 toolTip1.ReshowDelay = 500 ' Force the ToolTip text to be displayed whether or not the form is active. toolTip1.ShowAlways = True ' Set up the ToolTip text for the Button and Checkbox. toolTip1.SetToolTip(Me.button1, "My button1") toolTip1.SetToolTip(Me.checkBox1, "My checkBox1") End Sub
// This example assumes that the Form_Load event handling method // is connected to the Load event of the form. private void Form1_Load(object sender, System.EventArgs e) { // Create the ToolTip and associate with the Form container. ToolTip toolTip1 = new ToolTip(); // Set up the delays for the ToolTip. toolTip1.AutoPopDelay = 5000; toolTip1.InitialDelay = 1000; toolTip1.ReshowDelay = 500; // Force the ToolTip text to be displayed whether or not the form is active. toolTip1.ShowAlways = true; // Set up the ToolTip text for the Button and Checkbox. toolTip1.SetToolTip(this.button1, "My button1"); toolTip1.SetToolTip(this.checkBox1, "My checkBox1"); }
// This example assumes that the Form_Load event handling method // is connected to the Load event of the form. void Form1_Load( Object^ sender, System::EventArgs^ e ) { // Create the ToolTip and associate with the Form container. ToolTip^ toolTip1 = gcnew ToolTip; // Set up the delays for the ToolTip. toolTip1->AutoPopDelay = 5000; toolTip1->InitialDelay = 1000; toolTip1->ReshowDelay = 500; // Force the ToolTip text to be displayed whether or not the form is active. toolTip1->ShowAlways = true; // Set up the ToolTip text for the Button and Checkbox. toolTip1->SetToolTip( this->button1, "My button1" ); toolTip1->SetToolTip( this->checkBox1, "My checkBox1" ); }
// This example assumes that the Form_Load event handling method // is connected to the Load event of the form. private void Form1_Load(Object sender, System.EventArgs e) { // Create the ToolTip and associate with the Form container. ToolTip toolTip1 = new ToolTip(); // Set up the delays for the ToolTip. toolTip1.set_AutoPopDelay(5000); toolTip1.set_InitialDelay(1000); toolTip1.set_ReshowDelay(500); // Force the ToolTip text to be displayed whether or not the form // is active. toolTip1.set_ShowAlways(true); // Set up the ToolTip text for the Button and Checkbox. toolTip1.SetToolTip(this.button1, "My button1"); toolTip1.SetToolTip(this.checkBox1, "My checkBox1"); } //Form1_Load

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- ToolTip.ReshowDelay プロパティのページへのリンク