Support Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Note: This API is now obsolete.

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

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

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

[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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCopyArray(Array)

Obsolete. Duplicates Visual Basic 6.0 functionality of assigning an Array to a Variant.

System_CAPS_pubmethodSystem_CAPS_staticCursorToIPicture(Cursor)

Obsolete. Returns an OLE IPicture object that corresponds to the specified Cursor.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticEqv(Boolean, Boolean)

Obsolete. Performs a logical equivalence on two Boolean expressions.

System_CAPS_pubmethodSystem_CAPS_staticEqv(Byte, Byte)

Obsolete. Performs a logical equivalence on two Byte expressions.

System_CAPS_pubmethodSystem_CAPS_staticEqv(Int16, Int16)

Obsolete. Performs a logical equivalence on two Int16 expressions.

System_CAPS_pubmethodSystem_CAPS_staticEqv(Int32, Int32)

Obsolete. Performs a logical equivalence on two Int32 expressions.

System_CAPS_pubmethodSystem_CAPS_staticEqv(Int64, Int64)

Obsolete. Performs a logical equivalence on two Int64 expressions.

System_CAPS_pubmethodSystem_CAPS_staticEqv(Object, Object)

Obsolete. Performs a logical equivalence on two Object expressions.

System_CAPS_pubmethodSystem_CAPS_staticFontChangeBold(Font, Boolean)

Obsolete. Changes the Bold style bit for a font.

System_CAPS_pubmethodSystem_CAPS_staticFontChangeGdiCharSet(Font, Byte)

Obsolete. Returns a font for a specified GDI character set.

System_CAPS_pubmethodSystem_CAPS_staticFontChangeItalic(Font, Boolean)

Obsolete. Changes the Italic style bit for a font.

System_CAPS_pubmethodSystem_CAPS_staticFontChangeName(Font, String)

Obsolete. Returns a new Font for a given Visual Basic 6.0 Font.

System_CAPS_pubmethodSystem_CAPS_staticFontChangeSize(Font, Single)

Obsolete. Changes the Size property for a font.

System_CAPS_pubmethodSystem_CAPS_staticFontChangeStrikeout(Font, Boolean)

Obsolete. Changes the Strikeout style bit for a font.

System_CAPS_pubmethodSystem_CAPS_staticFontChangeUnderline(Font, Boolean)

Obsolete. Changes the Underline style bit for a font.

System_CAPS_pubmethodSystem_CAPS_staticFontToIFont(Font)

Obsolete. Converts a Font to a Visual Basic 6.0 stdFont object.

System_CAPS_pubmethodSystem_CAPS_staticFormat(Object, String, FirstDayOfWeek, FirstWeekOfYear)

Obsolete. Converts the Visual Basic 6.0 Format function to be compatible with Visual Basic.

System_CAPS_pubmethodSystem_CAPS_staticFromPixelsUserHeight(Double, Double, Int32)

Obsolete. Converts a pixel measurement to a Visual Basic 6.0 ScaleHeight measurement.

System_CAPS_pubmethodSystem_CAPS_staticFromPixelsUserWidth(Double, Double, Int32)

Obsolete. Converts a pixel measurement to a Visual Basic 6.0 ScaleWidth measurement.

System_CAPS_pubmethodSystem_CAPS_staticFromPixelsUserX(Double, Double, Double, Int32)

Obsolete. Converts a pixel measurement to a Visual Basic 6.0 ScaleLeft measurement.

System_CAPS_pubmethodSystem_CAPS_staticFromPixelsUserY(Double, Double, Double, Int32)

Obsolete. Converts a pixel measurement to a Visual Basic 6.0 ScaleTop measurement.

System_CAPS_pubmethodSystem_CAPS_staticFromPixelsX(Double, ScaleMode)

Obsolete. Converts a pixel measurement to a Visual Basic 6.0 measurement for a given ScaleMode.

System_CAPS_pubmethodSystem_CAPS_staticFromPixelsY(Double, ScaleMode)

Obsolete. Converts a pixel measurement to a Visual Basic 6.0 measurement for a given ScaleMode.

System_CAPS_pubmethodSystem_CAPS_staticGetActiveControl()

Obsolete. Gets the control that currently has focus.

System_CAPS_pubmethodSystem_CAPS_staticGetCancel(Button)

Obsolete. Gets a value that indicates whether a Button is the cancel button on a form.

System_CAPS_pubmethodSystem_CAPS_staticGetDefault(Button)

Obsolete. Gets sets a value that determines whether a Button control is the default button on a form.

System_CAPS_pubmethodSystem_CAPS_staticGetEXEName()

Obsolete. Gets the name of the executable file (.exe) for the current application.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGetHInstance()

Obsolete. Gets the instance handle (HINSTANCE) for the current application.

System_CAPS_pubmethodSystem_CAPS_staticGetItemData(Control, Int32)

Obsolete. Gets an Integer associated with a ListBox or ComboBox item.

System_CAPS_pubmethodSystem_CAPS_staticGetItemString(Control, Int32)

Obsolete. Gets a String associated with a ListBox or ComboBox item.

System_CAPS_pubmethodSystem_CAPS_staticGetPath()

Obsolete. Gets the current path for the application.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticIconToIPicture(Icon)

Obsolete. Gets an OLE IPicture object for a given Icon.

System_CAPS_pubmethodSystem_CAPS_staticIFontToFont(Object)

Obsolete. Converts a Visual Basic 6.0 stdFont object to a Font.

System_CAPS_pubmethodSystem_CAPS_staticImageToIPicture(Image)

Obsolete. Gets an OLE IPicture object for a given Image.

System_CAPS_pubmethodSystem_CAPS_staticImageToIPictureDisp(Image)

Obsolete. Gets an OLE IPictureDisp object for a given Image.

System_CAPS_pubmethodSystem_CAPS_staticImp(Boolean, Boolean)

Obsolete. Performs a logical implication on two Boolean expressions.

System_CAPS_pubmethodSystem_CAPS_staticImp(Byte, Byte)

Obsolete. Performs a logical implication on two Byte expressions.

System_CAPS_pubmethodSystem_CAPS_staticImp(Int16, Int16)

Obsolete. Performs a logical implication on two Int16 expressions.

System_CAPS_pubmethodSystem_CAPS_staticImp(Int32, Int32)

Obsolete. Performs a logical implication on two Int32 expressions.

System_CAPS_pubmethodSystem_CAPS_staticImp(Int64, Int64)

Obsolete. Performs a logical implication on two Int64 expressions.

System_CAPS_pubmethodSystem_CAPS_staticImp(Object, Object)

Obsolete. Performs a logical implication on two Object expressions.

System_CAPS_pubmethodSystem_CAPS_staticIPictureDispToImage(Object)

Obsolete. Gets an Image for a given OLE IPictureDisp object.

System_CAPS_pubmethodSystem_CAPS_staticIPictureToImage(Object)

Obsolete. Gets an Image for a given OLE IPicture object.

System_CAPS_pubmethodSystem_CAPS_staticLoadResData(Object, Object)

Obsolete. Loads data of several possible types from a resource (.res) file.

System_CAPS_pubmethodSystem_CAPS_staticLoadResData(Object, Object, CultureInfo)

Obsolete. Loads data of several possible types from a resource (.res) file, specifying a locale.

System_CAPS_pubmethodSystem_CAPS_staticLoadResPicture(Object, LoadResConstants)

Obsolete. Loads a bitmap, icon, or cursor from a resource (.res) file.

System_CAPS_pubmethodSystem_CAPS_staticLoadResPicture(Object, LoadResConstants, CultureInfo)

Obsolete. Loads a bitmap, icon, or cursor from a resource (.res) file, specifying a locale.

System_CAPS_pubmethodSystem_CAPS_staticLoadResString(Int32)

Obsolete. Loads a string from a resource (.res) file.

System_CAPS_pubmethodSystem_CAPS_staticLoadResString(Int32, CultureInfo)

Obsolete. Loads a string from a resource (.res) file, specifying a locale.

System_CAPS_pubmethodSystem_CAPS_staticPixelsToTwipsX(Double)

Obsolete. Converts an X coordinate from pixels to twips.

System_CAPS_pubmethodSystem_CAPS_staticPixelsToTwipsY(Double)

Obsolete. Converts a Y coordinate from pixels to twips.

System_CAPS_pubmethodSystem_CAPS_staticSendKeys(String, Boolean)

Obsolete. Sends one or more keystrokes to the active window as if typed at the keyboard.

System_CAPS_pubmethodSystem_CAPS_staticSetCancel(Button, Boolean)

Obsolete. Sets the CancelButton property of a Form.

System_CAPS_pubmethodSystem_CAPS_staticSetDefault(Button, Boolean)

Obsolete. Sets the AcceptButton property of a Form.

System_CAPS_pubmethodSystem_CAPS_staticSetItemData(Control, Int32, Int32)

Obsolete. Sets the ItemData property for a ListBoxItem.

System_CAPS_pubmethodSystem_CAPS_staticSetItemString(Control, Int32, String)

Obsolete. Sets the ItemString property for a ListBoxItem.

System_CAPS_pubmethodSystem_CAPS_staticSetResourceBaseName(String)

Obsolete. Assigns the name of a Visual Basic 6.0 resource file to the current Visual Basic project namespace.

System_CAPS_pubmethodSystem_CAPS_staticSetResourceBaseName(String, String)

Obsolete. Assigns the name of a Visual Basic 6.0 resource file to a Visual Basic project namespace.

System_CAPS_pubmethodSystem_CAPS_staticShowForm(Form, Int32, Form)

Obsolete. Displays a form by calling either the Show or ShowDialog method.

System_CAPS_pubmethodSystem_CAPS_staticTabLayout(Object[])

Obsolete. Formats strings to simulate the Visual Basic 6.0 Debug.Print functionality.

System_CAPS_pubmethodSystem_CAPS_staticToPixelsUserHeight(Double, Double, Int32)

Obsolete. Converts a Visual Basic 6.0 ScaleHeight measurement to a pixel measurement.

System_CAPS_pubmethodSystem_CAPS_staticToPixelsUserWidth(Double, Double, Int32)

Obsolete. Converts a Visual Basic 6.0 ScaleWidth measurement to a pixel measurement.

System_CAPS_pubmethodSystem_CAPS_staticToPixelsUserX(Double, Double, Double, Int32)

Obsolete. Converts a Visual Basic 6.0 ScaleLeft measurement to a pixel measurement.

System_CAPS_pubmethodSystem_CAPS_staticToPixelsUserY(Double, Double, Double, Int32)

Obsolete. Converts a Visual Basic 6.0 ScaleTop measurement to a pixel measurement.

System_CAPS_pubmethodSystem_CAPS_staticToPixelsX(Double, ScaleMode)

Obsolete. Converts a Visual Basic 6.0 measurement to a pixel measurement for a given ScaleMode.

System_CAPS_pubmethodSystem_CAPS_staticToPixelsY(Double, ScaleMode)

Obsolete. Converts a Visual Basic 6.0 measurement to a pixel measurement for a given ScaleMode.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticTwipsPerPixelX()

Obsolete. Gets a value that is used to convert twips to pixels based on screen settings.

System_CAPS_pubmethodSystem_CAPS_staticTwipsPerPixelY()

Obsolete. Gets a value that is used to convert twips to pixels based on screen settings.

System_CAPS_pubmethodSystem_CAPS_staticTwipsToPixelsX(Double)

Obsolete. Converts an X coordinate from twips to pixels.

System_CAPS_pubmethodSystem_CAPS_staticTwipsToPixelsY(Double)

Obsolete. Converts a Y coordinate from twips to pixels.

System_CAPS_pubmethodSystem_CAPS_staticValidateControls(ContainerControl)

Obsolete. Emulates the behavior of the Visual Basic 6.0 ValidateControls method.

System_CAPS_pubmethodSystem_CAPS_staticWhatsThisMode(Form)

Obsolete. Displays pop-up Help for a form upgraded from Visual Basic 6.0.

System_CAPS_pubmethodSystem_CAPS_staticZOrder(Control, Int32)

Obsolete. Converts the Visual Basic ZOrder method for use in Visual Basic.

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.

System_CAPS_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
Available since 1.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: