ToolStripItem.Select メソッド
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)


Select メソッドを呼び出す方法を次のコード例に示します。このコード例は、ToolStripItem クラスのトピックで取り上げているコード例の一部分です。
' This method handles the Click event for the button. ' it selects the first item in the ToolStrip control ' by using the ToolStripITem.Select method. Private Sub button1_Click(sender As Object, e As EventArgs) Handles button1.Click Dim item As RolloverItem = Me.toolStrip1.Items(0) If Not (item Is Nothing) Then item.Select() Me.Invalidate() End If End Sub
// This method handles the Click event for the button. // it selects the first item in the ToolStrip control // by using the ToolStripITem.Select method. private void button1_Click(object sender, EventArgs e) { RolloverItem item = this.toolStrip1.Items[0] as RolloverItem; if (item != null) { item.Select(); this.Invalidate(); } }

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に収録されているすべての辞書からToolStripItem.Select メソッドを検索する場合は、下記のリンクをクリックしてください。

- ToolStripItem.Select メソッドのページへのリンク