ערוך

שתף באמצעות


Support Class

Definition

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 Array to a Variant.

CursorToIPicture(Cursor)
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.

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 Font.

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 stdFont object.

Format(Object, String, FirstDayOfWeek, FirstWeekOfYear)
Obsolete.

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

FromPixelsUserHeight(Double, Double, Int32)
Obsolete.

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

FromPixelsUserWidth(Double, Double, Int32)
Obsolete.

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

FromPixelsUserX(Double, Double, Double, Int32)
Obsolete.

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

FromPixelsUserY(Double, Double, Double, Int32)
Obsolete.

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

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.

Gets an Integer associated with a ListBox or ComboBox item.

GetItemString(Control, Int32)
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(Icon)
Obsolete.

Gets an OLE IPicture object for a given Icon.

IFontToFont(Object)
Obsolete.

Converts a Visual Basic 6.0 stdFont object to a Font.

ImageToIPicture(Image)
Obsolete.

Gets an OLE IPicture object for a given Image.

ImageToIPictureDisp(Image)
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(Object)
Obsolete.

Gets an Image for a given OLE IPictureDisp object.

IPictureToImage(Object)
Obsolete.

Gets an Image for a given OLE IPicture object.

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 Debug.Print functionality.

ToPixelsUserHeight(Double, Double, Int32)
Obsolete.

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

ToPixelsUserWidth(Double, Double, Int32)
Obsolete.

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

ToPixelsUserX(Double, Double, Double, Int32)
Obsolete.

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

ToPixelsUserY(Double, Double, Double, Int32)
Obsolete.

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

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 ValidateControls method.

WhatsThisMode(Form)
Obsolete.

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

ZOrder(Control, Int32)
Obsolete.

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

Applies to