Support Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862
Contains various utility functions for backward compatibility with 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
- Inheritance
-
Support
- Attributes
Remarks
The functions in this class are used during the upgrade of Visual Basic 6.0 projects to Visual Basic. Some functions replace Visual Basic 6.0 functions that are no longer supported in Visual Basic; others compensate for differences in the object models.
To use functions in this class in a Visual Basic 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.
Methods
CopyArray(Array) |
Obsolete.
Duplicates Visual Basic 6.0 functionality of assigning an |
CursorToIPicture(Cursor) |
Obsolete.
Returns an OLE |
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. |
FontChangeBold(Font, Boolean) |
Obsolete.
Changes the Bold style bit for a font. |
FontChangeGdiCharSet(Font, Byte) |
Obsolete.
Returns a font for a specified GDI character set. |
FontChangeItalic(Font, Boolean) |
Obsolete.
Changes the Italic style bit for a font. |
FontChangeName(Font, String) |
Obsolete.
Returns a new Font for a given Visual Basic 6.0 |
FontChangeSize(Font, Single) |
Obsolete.
Changes the Size property for a font. |
FontChangeStrikeout(Font, Boolean) |
Obsolete.
Changes the Strikeout style bit for a font. |
FontChangeUnderline(Font, Boolean) |
Obsolete.
Changes the Underline style bit for a font. |
FontToIFont(Font) |
Obsolete.
Converts a Font to a Visual Basic 6.0 |
Format(Object, String, FirstDayOfWeek, FirstWeekOfYear) |
Obsolete.
Converts the Visual Basic 6.0 |
FromPixelsUserHeight(Double, Double, Int32) |
Obsolete.
Converts a pixel measurement to a Visual Basic 6.0 |
FromPixelsUserWidth(Double, Double, Int32) |
Obsolete.
Converts a pixel measurement to a Visual Basic 6.0 |
FromPixelsUserX(Double, Double, Double, Int32) |
Obsolete.
Converts a pixel measurement to a Visual Basic 6.0 |
FromPixelsUserY(Double, Double, Double, Int32) |
Obsolete.
Converts a pixel measurement to a Visual Basic 6.0 |
FromPixelsX(Double, ScaleMode) |
Obsolete.
Converts a pixel measurement to a Visual Basic 6.0 measurement for a given ScaleMode. |
FromPixelsY(Double, ScaleMode) |
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(Button) |
Obsolete.
Gets a value that indicates whether a Button is the cancel button on a form. |
GetDefault(Button) |
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 the default hash function. (Inherited from Object) |
GetHInstance() |
Obsolete.
Gets the instance handle (HINSTANCE) for the current application. |
GetItemData(Control, Int32) |
Obsolete.
|
GetItemString(Control, Int32) |
Obsolete.
|
GetPath() |
Obsolete.
Gets the current path for the application. |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
IconToIPicture(Icon) |
Obsolete.
Gets an OLE |
IFontToFont(Object) |
Obsolete.
Converts a Visual Basic 6.0 |
ImageToIPicture(Image) |
Obsolete.
Gets an OLE |
ImageToIPictureDisp(Image) |
Obsolete.
Gets an OLE |
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(Object) |
Obsolete.
Gets an Image for a given OLE |
IPictureToImage(Object) |
Obsolete.
Gets an Image for a given OLE |
LoadResData(Object, Object, CultureInfo) |
Obsolete.
Loads data of several possible types from a resource (.res) file, specifying a locale. |
LoadResData(Object, Object) |
Obsolete.
Loads data of several possible types from a resource (.res) file. |
LoadResPicture(Object, LoadResConstants, CultureInfo) |
Obsolete.
Loads a bitmap, icon, or cursor from a resource (.res) file, specifying a locale. |
LoadResPicture(Object, LoadResConstants) |
Obsolete.
Loads a bitmap, icon, or cursor from a resource (.res) file. |
LoadResString(Int32, CultureInfo) |
Obsolete.
Loads a string from a resource (.res) file, specifying a locale. |
LoadResString(Int32) |
Obsolete.
Loads a string from a resource (.res) file. |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
PixelsToTwipsX(Double) |
Obsolete.
Converts an X coordinate from pixels to twips. |
PixelsToTwipsY(Double) |
Obsolete.
Converts a Y coordinate from pixels to twips. |
SendKeys(String, Boolean) |
Obsolete.
Sends one or more keystrokes to the active window as if typed at the keyboard. |
SetCancel(Button, Boolean) |
Obsolete.
Sets the CancelButton property of a Form. |
SetDefault(Button, Boolean) |
Obsolete.
Sets the AcceptButton property of a Form. |
SetItemData(Control, Int32, Int32) |
Obsolete.
Sets the ItemData property for a ListBoxItem. |
SetItemString(Control, Int32, String) |
Obsolete.
Sets the ItemString property for a ListBoxItem. |
SetResourceBaseName(String, String) |
Obsolete.
Assigns the name of a Visual Basic 6.0 resource file to a Visual Basic project namespace. |
SetResourceBaseName(String) |
Obsolete.
Assigns the name of a Visual Basic 6.0 resource file to the current Visual Basic project namespace. |
ShowForm(Form, Int32, Form) |
Obsolete.
Displays a form by calling either the Show() or ShowDialog() method. |
TabLayout(Object[]) |
Obsolete.
Formats strings to simulate the Visual Basic 6.0 |
ToPixelsUserHeight(Double, Double, Int32) |
Obsolete.
Converts a Visual Basic 6.0 |
ToPixelsUserWidth(Double, Double, Int32) |
Obsolete.
Converts a Visual Basic 6.0 |
ToPixelsUserX(Double, Double, Double, Int32) |
Obsolete.
Converts a Visual Basic 6.0 |
ToPixelsUserY(Double, Double, Double, Int32) |
Obsolete.
Converts a Visual Basic 6.0 |
ToPixelsX(Double, ScaleMode) |
Obsolete.
Converts a Visual Basic 6.0 measurement to a pixel measurement for a given ScaleMode. |
ToPixelsY(Double, ScaleMode) |
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(Double) |
Obsolete.
Converts an X coordinate from twips to pixels. |
TwipsToPixelsY(Double) |
Obsolete.
Converts a Y coordinate from twips to pixels. |
ValidateControls(ContainerControl) |
Obsolete.
Emulates the behavior of the Visual Basic 6.0 |
WhatsThisMode(Form) |
Obsolete.
Displays pop-up Help for a form upgraded from Visual Basic 6.0. |
ZOrder(Control, Int32) |
Obsolete.
Converts the Visual Basic |