Support Class
Note: This API is now obsolete.
Contains various utility functions for backward compatibility with Visual Basic 6.0.
Assembly: Microsoft.VisualBasic.Compatibility (in Microsoft.VisualBasic.Compatibility.dll)
The Support type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | CopyArray | Obsolete. Duplicates Visual Basic 6.0 functionality of assigning an Array to a Variant. |
![]() ![]() | CursorToIPicture | Obsolete. Returns an OLE IPicture object that corresponds to the specified Cursor. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() ![]() | Eqv(Boolean, Boolean) | Obsolete. Performs a logical equivalence on two Boolean expressions. |
![]() ![]() | Eqv(Byte, Byte) | Obsolete. Performs a logical equivalence on two Byte expressions. |
![]() ![]() | Eqv(Int16, Int16) | Obsolete. Performs a logical equivalence on two Int16 expressions. |
![]() ![]() | Eqv(Int32, Int32) | Obsolete. Performs a logical equivalence on two Int32 expressions. |
![]() ![]() | Eqv(Int64, Int64) | Obsolete. Performs a logical equivalence on two Int64 expressions. |
![]() ![]() | Eqv(Object, Object) | Obsolete. Performs a logical equivalence on two Object expressions. |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | FontChangeBold | Obsolete. Changes the Bold style bit for a font. |
![]() ![]() | FontChangeGdiCharSet | Obsolete. Returns a font for a specified GDI character set. |
![]() ![]() | FontChangeItalic | Obsolete. Changes the Italic style bit for a font. |
![]() ![]() | FontChangeName | Obsolete. Returns a new Font for a given Visual Basic 6.0 Font. |
![]() ![]() | FontChangeSize | Obsolete. Changes the Size property for a font. |
![]() ![]() | FontChangeStrikeout | Obsolete. Changes the Strikeout style bit for a font. |
![]() ![]() | FontChangeUnderline | Obsolete. Changes the Underline style bit for a font. |
![]() ![]() | FontToIFont | Obsolete. Converts a Font to a Visual Basic 6.0 stdFont object. |
![]() ![]() | Format | Obsolete. Converts the Visual Basic 6.0 Format function to be compatible with Visual Basic 2010. |
![]() ![]() | FromPixelsUserHeight | Obsolete. Converts a pixel measurement to a Visual Basic 6.0 ScaleHeight measurement. |
![]() ![]() | FromPixelsUserWidth | Obsolete. Converts a pixel measurement to a Visual Basic 6.0 ScaleWidth measurement. |
![]() ![]() | FromPixelsUserX | Obsolete. Converts a pixel measurement to a Visual Basic 6.0 ScaleLeft measurement. |
![]() ![]() | FromPixelsUserY | Obsolete. Converts a pixel measurement to a Visual Basic 6.0 ScaleTop measurement. |
![]() ![]() | FromPixelsX | Obsolete. Converts a pixel measurement to a Visual Basic 6.0 measurement for a given ScaleMode. |
![]() ![]() | FromPixelsY | Obsolete. Converts a pixel measurement to a Visual Basic 6.0 measurement for a given ScaleMode. |
![]() ![]() | GetActiveControl | Obsolete. Gets the control that currently has focus. |
![]() ![]() | GetCancel | Obsolete. Gets a value that indicates whether a Button is the cancel button on a form. |
![]() ![]() | GetDefault | Obsolete. Gets sets a value that determines whether a Button control is the default button on a form. |
![]() ![]() | GetEXEName | Obsolete. Gets the name of the executable file (.exe) for the current application. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetHInstance | Obsolete. Gets the instance handle (HINSTANCE) for the current application. |
![]() ![]() | GetItemData | Obsolete. Gets an Integer associated with a ListBox or ComboBox item. |
![]() ![]() | GetItemString | Obsolete. Gets a String associated with a ListBox or ComboBox item. |
![]() ![]() | GetPath | Obsolete. Gets the current path for the application. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | IconToIPicture | Obsolete. Gets an OLE IPicture object for a given Icon. |
![]() ![]() | IFontToFont | Obsolete. Converts a Visual Basic 6.0 stdFont object to a Font. |
![]() ![]() | ImageToIPicture | Obsolete. Gets an OLE IPicture object for a given Image. |
![]() ![]() | ImageToIPictureDisp | Obsolete. Gets an OLE IPictureDisp object for a given Image. |
![]() ![]() | Imp(Boolean, Boolean) | Obsolete. Performs a logical implication on two Boolean expressions. |
![]() ![]() | Imp(Byte, Byte) | Obsolete. Performs a logical implication on two Byte expressions. |
![]() ![]() | Imp(Int16, Int16) | Obsolete. Performs a logical implication on two Int16 expressions. |
![]() ![]() | Imp(Int32, Int32) | Obsolete. Performs a logical implication on two Int32 expressions. |
![]() ![]() | Imp(Int64, Int64) | Obsolete. Performs a logical implication on two Int64 expressions. |
![]() ![]() | Imp(Object, Object) | Obsolete. Performs a logical implication on two Object expressions. |
![]() ![]() | IPictureDispToImage | Obsolete. Gets a Image for a given OLE IPictureDisp object. |
![]() ![]() | IPictureToImage | Obsolete. Gets a Image for a given OLE IPicture object. |
![]() ![]() | LoadResData(Object, Object) | Obsolete. Loads data of several possible types from a resource (.res) file. |
![]() ![]() | LoadResData(Object, Object, CultureInfo) | Obsolete. Loads data of several possible types from a resource (.res) file, specifying a locale. |
![]() ![]() | LoadResPicture(Object, LoadResConstants) | Obsolete. Loads a bitmap, icon, or cursor from a resource (.res) file. |
![]() ![]() | LoadResPicture(Object, LoadResConstants, CultureInfo) | Obsolete. Loads a bitmap, icon, or cursor from a resource (.res) file, specifying a locale. |
![]() ![]() | LoadResString(Int32) | Obsolete. Loads a string from a resource (.res) file. |
![]() ![]() | LoadResString(Int32, CultureInfo) | Obsolete. Loads a string from a resource (.res) file, specifying a locale. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | PixelsToTwipsX | Obsolete. Converts an X coordinate from pixels to twips. |
![]() ![]() | PixelsToTwipsY | Obsolete. Converts a Y coordinate from pixels to twips. |
![]() ![]() | SendKeys | Obsolete. Sends one or more keystrokes to the active window as if typed at the keyboard. |
![]() ![]() | SetCancel | Obsolete. Sets the CancelButton property of a Form. |
![]() ![]() | SetDefault | Obsolete. Sets the AcceptButton property of a Form. |
![]() ![]() | SetItemData | Obsolete. Sets the ItemData property for a ListBoxItem. |
![]() ![]() | SetItemString | Obsolete. Sets the ItemString property for a ListBoxItem. |
![]() ![]() | SetResourceBaseName(String) | Obsolete. Assigns the name of a Visual Basic 6.0 resource file to the current Visual Basic 2010 project namespace. |
![]() ![]() | SetResourceBaseName(String, String) | Obsolete. Assigns the name of a Visual Basic 6.0 resource file to a Visual Basic 2010 project namespace. |
![]() ![]() | ShowForm | Obsolete. Displays a form by calling either the Show or ShowDialog method. |
![]() ![]() | TabLayout | Obsolete. Formats strings to simulate the Visual Basic 6.0 Debug.Print functionality. |
![]() ![]() | ToPixelsUserHeight | Obsolete. Converts a Visual Basic 6.0 ScaleHeight measurement to a pixel measurement. |
![]() ![]() | ToPixelsUserWidth | Obsolete. Converts a Visual Basic 6.0 ScaleWidth measurement to a pixel measurement. |
![]() ![]() | ToPixelsUserX | Obsolete. Converts a Visual Basic 6.0 ScaleLeft measurement to a pixel measurement. |
![]() ![]() | ToPixelsUserY | Obsolete. Converts a Visual Basic 6.0 ScaleTop measurement to a pixel measurement. |
![]() ![]() | ToPixelsX | Obsolete. Converts a Visual Basic 6.0 measurement to a pixel measurement for a given ScaleMode. |
![]() ![]() | ToPixelsY | Obsolete. Converts a Visual Basic 6.0 measurement to a pixel measurement for a given ScaleMode. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() ![]() | TwipsPerPixelX | Obsolete. Gets a value that is used to convert twips to pixels based on screen settings. |
![]() ![]() | TwipsPerPixelY | Obsolete. Gets a value that is used to convert twips to pixels based on screen settings. |
![]() ![]() | TwipsToPixelsX | Obsolete. Converts an X coordinate from twips to pixels. |
![]() ![]() | TwipsToPixelsY | Obsolete. Converts a Y coordinate from twips to pixels. |
![]() ![]() | ValidateControls | Obsolete. Emulates the behavior of the Visual Basic 6.0 ValidateControls method. |
![]() ![]() | WhatsThisMode | Obsolete. Displays pop-up Help for a form upgraded from Visual Basic 6.0. |
![]() ![]() | ZOrder | Obsolete. Converts the Visual Basic ZOrder method for use in Visual Basic 2010. |
The functions in this class are used during the upgrade of Visual Basic 6.0 projects to Visual Basic 2010. Some functions replace Visual Basic 6.0 functions that are no longer supported in Visual Basic 2010; others compensate for differences in the object models.
To use functions in this class in a Visual Basic 2010 project, add a reference to the Microsoft.VisualBasic.Compatibility.VB6 namespace.
Note |
|---|
|
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 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
