Support.ValidateControls(ContainerControl) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862
模擬 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)
參數
- Form
- ContainerControl
控制 ContainerControl 是被父母控制的地方。
- 屬性
備註
在 Visual Basic 6.0 中,使用 ValidateControls 方法強制關閉表單時聚焦控制點觸發 Validate 事件;若 Validate 事件失敗,則會產生錯誤。 在Visual Basic中,ValidateControls 方法被 Validate 方法取代,回傳 true 或 false。
此函式被升級工具用來模擬 Visual Basic 6.0 的行為。
Note
Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式與物件,供工具從 Visual Basic 6.0 升級至 Visual Basic 2008 使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。