Support.ValidateControls(ContainerControl) Methode

Definitie

Let op

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

Emuleert het gedrag van de methode Visual Basic 6,0 ValidateControls.

public:
 static void ValidateControls(System::Windows::Forms::ContainerControl ^ Form);
public static void ValidateControls(System.Windows.Forms.ContainerControl Form);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static void ValidateControls(System.Windows.Forms.ContainerControl Form);
static member ValidateControls : System.Windows.Forms.ContainerControl -> unit
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member ValidateControls : System.Windows.Forms.ContainerControl -> unit
Public Sub ValidateControls (Form As ContainerControl)

Parameters

Form
ContainerControl

Het ContainerControl besturingselement waar het bovenliggend element staat.

Kenmerken

Opmerkingen

In Visual Basic 6.0 is de methode ValidateControls gebruikt om de gebeurtenis Validate af te dwingen voor het besturingselement dat de focus heeft wanneer een formulier wordt gesloten. Als de gebeurtenis Validate mislukt, is er een fout gegenereerd. In Visual Basic wordt de methode ValidateControls vervangen door de methode Validate, die true of false retourneert.

Deze functie wordt gebruikt door de upgradehulpprogramma's om het gedrag van Visual Basic 6.0 te emuleren.

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