Support 類別

定義

警告

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

包含多種工具函式,以向下相容於 Visual Basic 6.0。

public ref class Support sealed
[Microsoft.VisualBasic.CompilerServices.StandardModule]
public sealed class Support
[Microsoft.VisualBasic.CompilerServices.StandardModule]
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public sealed class Support
[<Microsoft.VisualBasic.CompilerServices.StandardModule>]
type Support = class
[<Microsoft.VisualBasic.CompilerServices.StandardModule>]
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
type Support = class
Public Module Support
繼承
Support
屬性

備註

本類別的函式用於 Visual Basic 6.0 專案升級至 Visual Basic 的過程中。 部分函數取代Visual Basic Visual Basic 已不再支援的 6.0 函式;其他函數則補償物件模型間的差異。

若要在 Visual Basic 專案中使用此類別的函式,請新增對 Microsoft.VisualBasic.Compatibility.VB6 命名空間的參考。

Note

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式與物件,供工具從 Visual Basic 6.0 升級至 Visual Basic 2008 使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。

方法

名稱 Description
CopyArray(Array)
已淘汰.

重複Visual Basic 6.0 功能,將 Array 指派給 Variant

CursorToIPicture(Cursor)
已淘汰.

回傳一個對應於指定 Cursor的 OLE IPicture 物件。

Equals(Object)
已淘汰.

判斷指定的 物件是否等於目前的物件。

(繼承來源 Object)
Eqv(Boolean, Boolean)
已淘汰.

對兩個 Boolean 表達式進行邏輯等價。

Eqv(Byte, Byte)
已淘汰.

對兩個 Byte 表達式進行邏輯等價。

Eqv(Int16, Int16)
已淘汰.

對兩個 Int16 表達式進行邏輯等價。

Eqv(Int32, Int32)
已淘汰.

對兩個 Int32 表達式進行邏輯等價。

Eqv(Int64, Int64)
已淘汰.

對兩個 Int64 表達式進行邏輯等價。

Eqv(Object, Object)
已淘汰.

對兩個 Object 表達式進行邏輯等價。

FontChangeBold(Font, Boolean)
已淘汰.

改變 Bold 字型的樣式部分。

FontChangeGdiCharSet(Font, Byte)
已淘汰.

回傳指定 GDI 字元集的字型。

FontChangeItalic(Font, Boolean)
已淘汰.

改變 Italic 字型的樣式部分。

FontChangeName(Font, String)
已淘汰.

在給定Visual Basic 6.0 Font 時回傳新的 Font

FontChangeSize(Font, Single)
已淘汰.

更改 Size 字型的屬性。

FontChangeStrikeout(Font, Boolean)
已淘汰.

改變 Strikeout 字型的樣式部分。

FontChangeUnderline(Font, Boolean)
已淘汰.

改變 Underline 字型的樣式部分。

FontToIFont(Font)
已淘汰.

將一個Font轉換成Visual Basic 6.0 stdFont物件。

Format(Object, String, FirstDayOfWeek, FirstWeekOfYear)
已淘汰.

將 Visual Basic 6.0 Format 函數轉換為相容於 Visual Basic。

FromPixelsUserHeight(Double, Double, Int32)
已淘汰.

將像素測量轉換為Visual Basic 6.0 ScaleHeight 的測量值。

FromPixelsUserWidth(Double, Double, Int32)
已淘汰.

將像素測量轉換為Visual Basic 6.0 ScaleWidth 的測量值。

FromPixelsUserX(Double, Double, Double, Int32)
已淘汰.

將像素測量轉換為Visual Basic 6.0 ScaleLeft 的測量值。

FromPixelsUserY(Double, Double, Double, Int32)
已淘汰.

將像素測量轉換為Visual Basic 6.0 ScaleTop 的測量值。

FromPixelsX(Double, ScaleMode)
已淘汰.

將像素測量轉換為給定ScaleMode的 Visual Basic 6.0 測量值。

FromPixelsY(Double, ScaleMode)
已淘汰.

將像素測量轉換為給定ScaleMode的 Visual Basic 6.0 測量值。

GetActiveControl()
已淘汰.

取得目前有焦點的控制權。

GetCancel(Button)
已淘汰.

會得到一個值,表示 a Button 是否是表單上的取消按鈕。

GetDefault(Button)
已淘汰.

Gets 會設定一個值,決定某個控制項是否 Button 是表單上的預設按鈕。

GetEXEName()
已淘汰.

取得目前應用程式的可執行檔名稱(.exe)。

GetHashCode()
已淘汰.

做為預設雜湊函式。

(繼承來源 Object)
GetHInstance()
已淘汰.

取得目前應用程式的實例句柄(HINSTANCE)。

GetItemData(Control, Int32)
已淘汰.

會與IntegerListBoxComboBox個或物品相關聯。

GetItemString(Control, Int32)
已淘汰.

會與StringListBoxComboBox個物品產生關聯。

GetPath()
已淘汰.

取得應用程式目前的路徑。

GetType()
已淘汰.

取得目前實例的 Type

(繼承來源 Object)
IconToIPicture(Icon)
已淘汰.

取得給定 Icon的 OLE IPicture 物件。

IFontToFont(Object)
已淘汰.

將Visual Basic 6.0 stdFont 物件轉換成 Font

ImageToIPicture(Image)
已淘汰.

取得給定 Image的 OLE IPicture 物件。

ImageToIPictureDisp(Image)
已淘汰.

取得給定 Image的 OLE IPictureDisp 物件。

Imp(Boolean, Boolean)
已淘汰.

對兩個 Boolean 表達式執行邏輯蘊涵。

Imp(Byte, Byte)
已淘汰.

對兩個 Byte 表達式執行邏輯蘊涵。

Imp(Int16, Int16)
已淘汰.

對兩個 Int16 表達式執行邏輯蘊涵。

Imp(Int32, Int32)
已淘汰.

對兩個 Int32 表達式執行邏輯蘊涵。

Imp(Int64, Int64)
已淘汰.

對兩個 Int64 表達式執行邏輯蘊涵。

Imp(Object, Object)
已淘汰.

對兩個 Object 表達式執行邏輯蘊涵。

IPictureDispToImage(Object)
已淘汰.

會對特定 OLE IPictureDisp 物件取得 一個Image

IPictureToImage(Object)
已淘汰.

會對特定 OLE IPicture 物件取得 一個Image

LoadResData(Object, Object, CultureInfo)
已淘汰.

從資源(.res)檔案載入多種可能類型的資料,指定一個區域。

LoadResData(Object, Object)
已淘汰.

從資源(.res)檔案載入多種可能類型的資料。

LoadResPicture(Object, LoadResConstants, CultureInfo)
已淘汰.

從資源檔案(.res)載入位圖、圖示或游標,指定地點。

LoadResPicture(Object, LoadResConstants)
已淘汰.

從資源(.res)檔案載入點陣圖、圖示或游標。

LoadResString(Int32, CultureInfo)
已淘汰.

從資源檔案(.res)載入字串,指定位置。

LoadResString(Int32)
已淘汰.

從資源(.res)檔案載入字串。

MemberwiseClone()
已淘汰.

建立目前 Object的淺層複本。

(繼承來源 Object)
PixelsToTwipsX(Double)
已淘汰.

將 X 座標從像素轉換成 twips。

PixelsToTwipsY(Double)
已淘汰.

將 Y 座標從像素轉換成 twips。

SendKeys(String, Boolean)
已淘汰.

請將一個或多個按鍵傳送到使用中視窗如同在鍵盤上輸入一樣。

SetCancel(Button, Boolean)
已淘汰.

設定 CancelButtonForm性質。

SetDefault(Button, Boolean)
已淘汰.

設定 AcceptButtonForm性質。

SetItemData(Control, Int32, Int32)
已淘汰.

設定 ItemData 屬性 。ListBoxItem

SetItemString(Control, Int32, String)
已淘汰.

設定 ItemString 屬性 。ListBoxItem

SetResourceBaseName(String, String)
已淘汰.

將 Visual Basic 6.0 資源檔案的名稱指派給 Visual Basic 專案命名空間。

SetResourceBaseName(String)
已淘汰.

將 Visual Basic 6.0 資源檔案的名稱指派到目前的 Visual Basic 專案命名空間。

ShowForm(Form, Int32, Form)
已淘汰.

透過呼叫 或 Show()ShowDialog() 方法來顯示表單。

TabLayout(Object[])
已淘汰.

格式化字串以模擬 Visual Basic 6.0 Debug.Print 功能。

ToPixelsUserHeight(Double, Double, Int32)
已淘汰.

將Visual Basic 6.0 ScaleHeight 測量值轉換為像素測量值。

ToPixelsUserWidth(Double, Double, Int32)
已淘汰.

將Visual Basic 6.0 ScaleWidth 測量值轉換為像素測量值。

ToPixelsUserX(Double, Double, Double, Int32)
已淘汰.

將Visual Basic 6.0 ScaleLeft 測量值轉換為像素測量值。

ToPixelsUserY(Double, Double, Double, Int32)
已淘汰.

將Visual Basic 6.0 ScaleTop 測量值轉換為像素測量值。

ToPixelsX(Double, ScaleMode)
已淘汰.

將Visual Basic 6.0 的測量轉換為像素測量值,適用於給定的 ScaleMode

ToPixelsY(Double, ScaleMode)
已淘汰.

將Visual Basic 6.0 的測量轉換為像素測量值,適用於給定的 ScaleMode

ToString()
已淘汰.

傳回表示目前 物件的字串。

(繼承來源 Object)
TwipsPerPixelX()
已淘汰.

會得到一個數值,用來根據螢幕設定將 twip 轉換成像素。

TwipsPerPixelY()
已淘汰.

會得到一個數值,用來根據螢幕設定將 twip 轉換成像素。

TwipsToPixelsX(Double)
已淘汰.

將 X 座標從 twips 轉換成像素。

TwipsToPixelsY(Double)
已淘汰.

將 Y 座標從 twips 轉換成像素。

ValidateControls(ContainerControl)
已淘汰.

模擬 Visual Basic 6.0 ValidateControls 方法的行為。

WhatsThisMode(Form)
已淘汰.

顯示器彈出視窗幫助,為從 Visual Basic 6.0 升級表單提供協助。

ZOrder(Control, Int32)
已淘汰.

將 Visual Basic ZOrder 方法轉換為用於 Visual Basic。

適用於