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

Dim instance As PrintPreviewDialog Dim value As IButtonControl value = instance.AcceptButton instance.AcceptButton = value
public: property IButtonControl^ AcceptButton { IButtonControl^ get (); void set (IButtonControl^ value); }
/** @property */ public IButtonControl get_AcceptButton () /** @property */ public void set_AcceptButton (IButtonControl value)
public function get AcceptButton () : IButtonControl public function set AcceptButton (value : IButtonControl)
フォームの確定ボタンとして使用するボタンを表す IButtonControl。

このプロパティを使用すると、アプリケーションでユーザーが Enter キーを押したときに発生する既定のアクションを指定できます。このプロパティに割り当てるボタンは、IButtonControl を実装し、現在のフォーム上、または現在のフォーム上のコンテナ内にあることが必要です。
このプロパティを使用すると、たとえばユーザーがフォーム上で操作を終了するときに、マウスで確定ボタンをクリックするのではなく、Enter キーを押して終了できるようになります。
フォーム上で現在選択されているコントロールが Enter キーに反応して処理を行っても、確定ボタンがアクティブにならない場合があります。たとえば、複数行のテキスト ボックス コントロールでは、コントロール内に改行文字を挿入するために Enter キーを押すことができるようにします。

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に収録されているすべての辞書からPrintPreviewDialog.AcceptButton プロパティを検索する場合は、下記のリンクをクリックしてください。

- PrintPreviewDialog.AcceptButton プロパティのページへのリンク