FormShowConstants 列舉



此 API 現已淘汰。

提供與 Visual Basic 6.0 Show 方法相容的常數。Provides constants for compatibility with the Visual Basic 6.0 Show method.

public enum class FormShowConstants
public enum FormShowConstants
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only.")]
public enum FormShowConstants
type FormShowConstants = 
Public Enum FormShowConstants


Modal 1

相當於 Visual Basic 6.0 常數 vbModalEquivalent to the Visual Basic 6.0 constant vbModal.

Modeless 0

相當於 Visual Basic 6.0 常數 vbModelessEquivalent to the Visual Basic 6.0 constant vbModeless.


在 Visual Basic 6.0 中,Show 方法的 Modal 參數是用來判斷是否要將表單顯示為強制回應對話方塊。In Visual Basic 6.0, the Modal parameter of the Show method was used to determine whether a form would be shown as a modal dialog box. 在 Visual Basic 中,Modal 參數會取代成兩個不同的 Show 方法: ShowShowDialogIn Visual Basic, the Modal parameter is replaced by two different Show methods: Show and ShowDialog.

這些常數可讓已從 Visual Basic 6.0 升級的程式碼繼續執行,而不需要進行其他修改。These constants enable code that has been upgraded from Visual Basic 6.0 to continue to run without additional modification.


Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 在大多數情況下,這些函式和物件會複製在 .NET Framework.NET Framework 的其他命名空間中可以找到的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework.NET Framework. 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework.NET Framework 實作有顯著差異時,才需要這些項目。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework.NET Framework implementation.