次の方法で共有


Support.GetDefault(Button) メソッド

定義

注意事項

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

Button コントロールがフォーム上の既定のボタンであるかどうかを決定する値を取得または設定します。

public:
 static bool GetDefault(System::Windows::Forms::Button ^ btn);
public static bool GetDefault (System.Windows.Forms.Button btn);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static bool GetDefault (System.Windows.Forms.Button btn);
static member GetDefault : System.Windows.Forms.Button -> bool
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member GetDefault : System.Windows.Forms.Button -> bool
Public Function GetDefault (btn As Button) As Boolean

パラメーター

btn
Button

Button コントロール。

戻り値

btn が既定のボタンである場合は true。それ以外の場合は false

属性

注釈

この関数と同等のチェック、AcceptButtonのプロパティをFormします。

注意

Microsoft.VisualBasic.Compatibility.VB6 名前空間の関数とオブジェクトは、Visual Basic 6.0 から Visual Basic 2008 へのアップグレード ツールで使用するために用意されています。 ほとんどの場合、これらの関数とオブジェクトは、.NET Framework の他の名前空間にある機能と重複しています。 これらが必要になるのは、Visual Basic 6.0 のコード モデルが .NET Framework の実装と大きく異なる場合だけです。

適用対象