Freigeben über


Support.GetCancel(Button) Methode

Definition

Achtung

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

Ruft einen Wert ab, der angibt, ob es Button sich um die Schaltfläche "Abbrechen" in einem Formular handelt.

public:
 static bool GetCancel(System::Windows::Forms::Button ^ btn);
public static bool GetCancel(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 GetCancel(System.Windows.Forms.Button btn);
static member GetCancel : 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 GetCancel : System.Windows.Forms.Button -> bool
Public Function GetCancel (btn As Button) As Boolean

Parameter

btn
Button

Ein Button Steuerelement.

Gibt zurück

true wenn btn die Schaltfläche "Abbrechen" ist; andernfalls false.

Attribute

Hinweise

Diese Funktion entspricht der Überprüfung der CancelButton Eigenschaft einer .Form

Hinweis

Funktionen und Objekte im Microsoft.VisualBasic.Compatibility.VB6 Namespace werden von den Tools zum Upgrade von Visual Basic 6.0 auf Visual Basic 2008 bereitgestellt. In den meisten Fällen haben diese Funktionen und Objekte doppelte Funktionen, die Sie in anderen Namespaces im .NET Framework finden können. Sie sind nur erforderlich, wenn sich das Visual Basic 6.0-Codemodell erheblich von der .NET Framework-Implementierung unterscheidet.

Gilt für: