Support.GetDefault(Button) Methode

Definitie

Let op

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

Hiermee wordt een waarde ingesteld die bepaalt of een Button besturingselement de standaardknop op een formulier is.

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

Parameters

btn
Button

Een Button besturingselement.

Retouren

true als btn dit de standaardknop is; anders false.

Kenmerken

Opmerkingen

Deze functie is het equivalent van het controleren van de AcceptButton eigenschap van een Form.

Note

Functies en objecten in de naamruimte Microsoft.VisualBasic.Compatibility.VB6 worden gebruikt door de hulpprogramma's voor het upgraden van Visual Basic 6.0 naar Visual Basic 2008. In de meeste gevallen zijn deze functies en objecten dubbele functionaliteit die u kunt vinden in andere naamruimten in het .NET Framework. Ze zijn alleen nodig wanneer het codemodel Visual Basic 6.0 aanzienlijk verschilt van de .NET Framework-implementatie.

Van toepassing op