Support Class

Note: This API is now obsolete.

Contains various utility functions for backward compatibility with Visual Basic 6.0.

System.Object
  Microsoft.VisualBasic.Compatibility.VB6.Support

Namespace:  Microsoft.VisualBasic.Compatibility.VB6
Assembly:  Microsoft.VisualBasic.Compatibility (in Microsoft.VisualBasic.Compatibility.dll)

[StandardModuleAttribute]
[ObsoleteAttribute("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public sealed class Support

The Support type exposes the following members.

  NameDescription
Public methodStatic memberCopyArray Obsolete. Duplicates Visual Basic 6.0 functionality of assigning an Array to a Variant.
Public methodStatic memberCursorToIPicture Obsolete. Returns an OLE IPicture object that corresponds to the specified Cursor.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodStatic memberEqv(Boolean, Boolean) Obsolete. Performs a logical equivalence on two Boolean expressions.
Public methodStatic memberEqv(Byte, Byte) Obsolete. Performs a logical equivalence on two Byte expressions.
Public methodStatic memberEqv(Int16, Int16) Obsolete. Performs a logical equivalence on two Int16 expressions.
Public methodStatic memberEqv(Int32, Int32) Obsolete. Performs a logical equivalence on two Int32 expressions.
Public methodStatic memberEqv(Int64, Int64) Obsolete. Performs a logical equivalence on two Int64 expressions.
Public methodStatic memberEqv(Object, Object) Obsolete. Performs a logical equivalence on two Object expressions.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberFontChangeBold Obsolete. Changes the Bold style bit for a font.
Public methodStatic memberFontChangeGdiCharSet Obsolete. Returns a font for a specified GDI character set.
Public methodStatic memberFontChangeItalic Obsolete. Changes the Italic style bit for a font.
Public methodStatic memberFontChangeName Obsolete. Returns a new Font for a given Visual Basic 6.0 Font.
Public methodStatic memberFontChangeSize Obsolete. Changes the Size property for a font.
Public methodStatic memberFontChangeStrikeout Obsolete. Changes the Strikeout style bit for a font.
Public methodStatic memberFontChangeUnderline Obsolete. Changes the Underline style bit for a font.
Public methodStatic memberFontToIFont Obsolete. Converts a Font to a Visual Basic 6.0 stdFont object.
Public methodStatic memberFormat Obsolete. Converts the Visual Basic 6.0 Format function to be compatible with Visual Basic 2010.
Public methodStatic memberFromPixelsUserHeight Obsolete. Converts a pixel measurement to a Visual Basic 6.0 ScaleHeight measurement.
Public methodStatic memberFromPixelsUserWidth Obsolete. Converts a pixel measurement to a Visual Basic 6.0 ScaleWidth measurement.
Public methodStatic memberFromPixelsUserX Obsolete. Converts a pixel measurement to a Visual Basic 6.0 ScaleLeft measurement.
Public methodStatic memberFromPixelsUserY Obsolete. Converts a pixel measurement to a Visual Basic 6.0 ScaleTop measurement.
Public methodStatic memberFromPixelsX Obsolete. Converts a pixel measurement to a Visual Basic 6.0 measurement for a given ScaleMode.
Public methodStatic memberFromPixelsY Obsolete. Converts a pixel measurement to a Visual Basic 6.0 measurement for a given ScaleMode.
Public methodStatic memberGetActiveControl Obsolete. Gets the control that currently has focus.
Public methodStatic memberGetCancel Obsolete. Gets a value that indicates whether a Button is the cancel button on a form.
Public methodStatic memberGetDefault Obsolete. Gets sets a value that determines whether a Button control is the default button on a form.
Public methodStatic memberGetEXEName Obsolete. Gets the name of the executable file (.exe) for the current application.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodStatic memberGetHInstance Obsolete. Gets the instance handle (HINSTANCE) for the current application.
Public methodStatic memberGetItemData Obsolete. Gets an Integer associated with a ListBox or ComboBox item.
Public methodStatic memberGetItemString Obsolete. Gets a String associated with a ListBox or ComboBox item.
Public methodStatic memberGetPath Obsolete. Gets the current path for the application.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberIconToIPicture Obsolete. Gets an OLE IPicture object for a given Icon.
Public methodStatic memberIFontToFont Obsolete. Converts a Visual Basic 6.0 stdFont object to a Font.
Public methodStatic memberImageToIPicture Obsolete. Gets an OLE IPicture object for a given Image.
Public methodStatic memberImageToIPictureDisp Obsolete. Gets an OLE IPictureDisp object for a given Image.
Public methodStatic memberImp(Boolean, Boolean) Obsolete. Performs a logical implication on two Boolean expressions.
Public methodStatic memberImp(Byte, Byte) Obsolete. Performs a logical implication on two Byte expressions.
Public methodStatic memberImp(Int16, Int16) Obsolete. Performs a logical implication on two Int16 expressions.
Public methodStatic memberImp(Int32, Int32) Obsolete. Performs a logical implication on two Int32 expressions.
Public methodStatic memberImp(Int64, Int64) Obsolete. Performs a logical implication on two Int64 expressions.
Public methodStatic memberImp(Object, Object) Obsolete. Performs a logical implication on two Object expressions.
Public methodStatic memberIPictureDispToImage Obsolete. Gets a Image for a given OLE IPictureDisp object.
Public methodStatic memberIPictureToImage Obsolete. Gets a Image for a given OLE IPicture object.
Public methodStatic memberLoadResData(Object, Object) Obsolete. Loads data of several possible types from a resource (.res) file.
Public methodStatic memberLoadResData(Object, Object, CultureInfo) Obsolete. Loads data of several possible types from a resource (.res) file, specifying a locale.
Public methodStatic memberLoadResPicture(Object, LoadResConstants) Obsolete. Loads a bitmap, icon, or cursor from a resource (.res) file.
Public methodStatic memberLoadResPicture(Object, LoadResConstants, CultureInfo) Obsolete. Loads a bitmap, icon, or cursor from a resource (.res) file, specifying a locale.
Public methodStatic memberLoadResString(Int32) Obsolete. Loads a string from a resource (.res) file.
Public methodStatic memberLoadResString(Int32, CultureInfo) Obsolete. Loads a string from a resource (.res) file, specifying a locale.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberPixelsToTwipsX Obsolete. Converts an X coordinate from pixels to twips.
Public methodStatic memberPixelsToTwipsY Obsolete. Converts a Y coordinate from pixels to twips.
Public methodStatic memberSendKeys Obsolete. Sends one or more keystrokes to the active window as if typed at the keyboard.
Public methodStatic memberSetCancel Obsolete. Sets the CancelButton property of a Form.
Public methodStatic memberSetDefault Obsolete. Sets the AcceptButton property of a Form.
Public methodStatic memberSetItemData Obsolete. Sets the ItemData property for a ListBoxItem.
Public methodStatic memberSetItemString Obsolete. Sets the ItemString property for a ListBoxItem.
Public methodStatic memberSetResourceBaseName(String) Obsolete. Assigns the name of a Visual Basic 6.0 resource file to the current Visual Basic 2010 project namespace.
Public methodStatic memberSetResourceBaseName(String, String) Obsolete. Assigns the name of a Visual Basic 6.0 resource file to a Visual Basic 2010 project namespace.
Public methodStatic memberShowForm Obsolete. Displays a form by calling either the Show or ShowDialog method.
Public methodStatic memberTabLayout Obsolete. Formats strings to simulate the Visual Basic 6.0 Debug.Print functionality.
Public methodStatic memberToPixelsUserHeight Obsolete. Converts a Visual Basic 6.0 ScaleHeight measurement to a pixel measurement.
Public methodStatic memberToPixelsUserWidth Obsolete. Converts a Visual Basic 6.0 ScaleWidth measurement to a pixel measurement.
Public methodStatic memberToPixelsUserX Obsolete. Converts a Visual Basic 6.0 ScaleLeft measurement to a pixel measurement.
Public methodStatic memberToPixelsUserY Obsolete. Converts a Visual Basic 6.0 ScaleTop measurement to a pixel measurement.
Public methodStatic memberToPixelsX Obsolete. Converts a Visual Basic 6.0 measurement to a pixel measurement for a given ScaleMode.
Public methodStatic memberToPixelsY Obsolete. Converts a Visual Basic 6.0 measurement to a pixel measurement for a given ScaleMode.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodStatic memberTwipsPerPixelX Obsolete. Gets a value that is used to convert twips to pixels based on screen settings.
Public methodStatic memberTwipsPerPixelY Obsolete. Gets a value that is used to convert twips to pixels based on screen settings.
Public methodStatic memberTwipsToPixelsX Obsolete. Converts an X coordinate from twips to pixels.
Public methodStatic memberTwipsToPixelsY Obsolete. Converts a Y coordinate from twips to pixels.
Public methodStatic memberValidateControls Obsolete. Emulates the behavior of the Visual Basic 6.0 ValidateControls method.
Public methodStatic memberWhatsThisMode Obsolete. Displays pop-up Help for a form upgraded from Visual Basic 6.0.
Public methodStatic memberZOrder Obsolete. Converts the Visual Basic ZOrder method for use in Visual Basic 2010.
Top

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.

NoteNote

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.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Obsolete (compiler warning) in 4

.NET Framework Client Profile

Obsolete (compiler warning) in 4

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft