Support 类

定义

注意

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

包含各种实用工具函数,用于向后兼容 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
继承
Support
属性

注解

此类中的函数在Visual Basic 6.0 项目的升级过程中使用,以Visual Basic。 某些函数替换Visual Basic Visual Basic不再支持的 6.0 函数;另一些函数则补偿对象模型中的差异。

若要在Visual Basic项目中使用此类中的函数,请添加对 Microsoft.VisualBasic.Compatibility.VB6 命名空间的引用。

注释

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象由用于从 Visual Basic 6.0 升级到 Visual Basic 2008 的工具使用。 在大多数情况下,这些函数和对象重复了可在 .NET Framework 中的其他命名空间中找到的功能。 仅当 Visual Basic 6.0 代码模型与 .NET Framework 实现明显不同时,它们才是必需的。

方法

名称 说明
CopyArray(Array)
已过时.

复制 Visual Basic将 Array 分配给 Variant 的 6.0 功能。

CursorToIPicture(Cursor)
已过时.

返回与指定的 IPictureOLE 对象相对应的 OLE Cursor 对象。

Equals(Object)
已过时.

确定指定的对象是否等于当前对象。

(继承自 Object)
Eqv(Boolean, Boolean)
已过时.

对两 Boolean 个表达式执行逻辑等效。

Eqv(Byte, Byte)
已过时.

对两 Byte 个表达式执行逻辑等效。

Eqv(Int16, Int16)
已过时.

对两 Int16 个表达式执行逻辑等效。

Eqv(Int32, Int32)
已过时.

对两 Int32 个表达式执行逻辑等效。

Eqv(Int64, Int64)
已过时.

对两 Int64 个表达式执行逻辑等效。

Eqv(Object, Object)
已过时.

对两 Object 个表达式执行逻辑等效。

FontChangeBold(Font, Boolean)
已过时.

更改字体的 Bold 样式位。

FontChangeGdiCharSet(Font, Byte)
已过时.

返回指定 GDI 字符集的字体。

FontChangeItalic(Font, Boolean)
已过时.

更改字体的 Italic 样式位。

FontChangeName(Font, String)
已过时.

返回给定Visual Basic 6.0 Font的新 Font

FontChangeSize(Font, Single)
已过时.

更改 Size 字体的属性。

FontChangeStrikeout(Font, Boolean)
已过时.

更改字体的 Strikeout 样式位。

FontChangeUnderline(Font, Boolean)
已过时.

更改字体的 Underline 样式位。

FontToIFont(Font)
已过时.

Font 转换为 Visual Basic 6.0 stdFont 对象。

Format(Object, String, FirstDayOfWeek, FirstWeekOfYear)
已过时.

将 Visual Basic 6.0 Format 函数转换为与Visual Basic兼容。

FromPixelsUserHeight(Double, Double, Int32)
已过时.

将像素度量转换为 Visual Basic 6.0 ScaleHeight 度量。

FromPixelsUserWidth(Double, Double, Int32)
已过时.

将像素度量转换为 Visual Basic 6.0 ScaleWidth 度量。

FromPixelsUserX(Double, Double, Double, Int32)
已过时.

将像素度量转换为 Visual Basic 6.0 ScaleLeft 度量。

FromPixelsUserY(Double, Double, Double, Int32)
已过时.

将像素度量转换为 Visual Basic 6.0 ScaleTop 度量。

FromPixelsX(Double, ScaleMode)
已过时.

将像素度量转换为给定ScaleMode的Visual Basic 6.0 度量。

FromPixelsY(Double, ScaleMode)
已过时.

将像素度量转换为给定ScaleMode的Visual Basic 6.0 度量。

GetActiveControl()
已过时.

获取当前具有焦点的控件。

GetCancel(Button)
已过时.

获取一个值,该值指示窗体上的取消按钮是否 Button 为取消按钮。

GetDefault(Button)
已过时.

获取一个值,该值确定控件是否 Button 为窗体上的默认按钮。

GetEXEName()
已过时.

获取当前应用程序的可执行文件的名称(.exe)。

GetHashCode()
已过时.

用作默认哈希函数。

(继承自 Object)
GetHInstance()
已过时.

获取当前应用程序的实例句柄(HINSTANCE)。

GetItemData(Control, Int32)
已过时.

获取与某个或Integer项关联的项。ListBoxComboBox

GetItemString(Control, Int32)
已过时.

获取与某个StringListBox项关联的项ComboBox

GetPath()
已过时.

获取应用程序的当前路径。

GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
IconToIPicture(Icon)
已过时.

获取给定IPicture的 OLE Icon 对象。

IFontToFont(Object)
已过时.

将 Visual Basic 6.0 stdFont 对象转换为 Font

ImageToIPicture(Image)
已过时.

获取给定IPicture的 OLE Image 对象。

ImageToIPictureDisp(Image)
已过时.

获取给定IPictureDisp的 OLE Image 对象。

Imp(Boolean, Boolean)
已过时.

对两 Boolean 个表达式执行逻辑影响。

Imp(Byte, Byte)
已过时.

对两 Byte 个表达式执行逻辑影响。

Imp(Int16, Int16)
已过时.

对两 Int16 个表达式执行逻辑影响。

Imp(Int32, Int32)
已过时.

对两 Int32 个表达式执行逻辑影响。

Imp(Int64, Int64)
已过时.

对两 Int64 个表达式执行逻辑影响。

Imp(Object, Object)
已过时.

对两 Object 个表达式执行逻辑影响。

IPictureDispToImage(Object)
已过时.

获取给定 OLE Image 对象的一个IPictureDisp

IPictureToImage(Object)
已过时.

获取给定 OLE Image 对象的一个IPicture

LoadResData(Object, Object, CultureInfo)
已过时.

从资源文件(.res)加载多个可能类型的数据,并指定区域设置。

LoadResData(Object, Object)
已过时.

从资源文件(.res)加载多个可能类型的数据。

LoadResPicture(Object, LoadResConstants, CultureInfo)
已过时.

从资源(.res)文件加载位图、图标或光标,并指定区域设置。

LoadResPicture(Object, LoadResConstants)
已过时.

从资源 (.res) 文件加载位图、图标或光标。

LoadResString(Int32, CultureInfo)
已过时.

从资源(.res)文件加载字符串,并指定区域设置。

LoadResString(Int32)
已过时.

从资源 (.res) 文件加载字符串。

MemberwiseClone()
已过时.

创建当前 Object的浅表副本。

(继承自 Object)
PixelsToTwipsX(Double)
已过时.

将 X 坐标从像素转换为 twips。

PixelsToTwipsY(Double)
已过时.

将 Y 坐标从像素转换为 twips。

SendKeys(String, Boolean)
已过时.

向活动窗口发送一个或多个键击,就像按键盘上的按键一样。

SetCancel(Button, Boolean)
已过时.

CancelButton设置一个 Form. 的属性。

SetDefault(Button, Boolean)
已过时.

AcceptButton设置一个 Form. 的属性。

SetItemData(Control, Int32, Int32)
已过时.

ItemData设置 .ListBoxItem. 的属性

SetItemString(Control, Int32, String)
已过时.

ItemString设置 .ListBoxItem. 的属性

SetResourceBaseName(String, String)
已过时.

将 Visual Basic 6.0 资源文件的名称分配给Visual Basic项目命名空间。

SetResourceBaseName(String)
已过时.

将 Visual Basic 6.0 资源文件的名称分配给当前Visual Basic项目命名空间。

ShowForm(Form, Int32, Form)
已过时.

通过调用 Show()ShowDialog() 方法显示窗体。

TabLayout(Object[])
已过时.

格式化字符串以模拟 Visual Basic 6.0 Debug.Print 功能。

ToPixelsUserHeight(Double, Double, Int32)
已过时.

将 Visual Basic 6.0 ScaleHeight 度量转换为像素度量。

ToPixelsUserWidth(Double, Double, Int32)
已过时.

将 Visual Basic 6.0 ScaleWidth 度量转换为像素度量。

ToPixelsUserX(Double, Double, Double, Int32)
已过时.

将 Visual Basic 6.0 ScaleLeft 度量转换为像素度量。

ToPixelsUserY(Double, Double, Double, Int32)
已过时.

将 Visual Basic 6.0 ScaleTop 度量转换为像素度量。

ToPixelsX(Double, ScaleMode)
已过时.

将Visual Basic 6.0 度量转换为给定ScaleMode的像素度量。

ToPixelsY(Double, ScaleMode)
已过时.

将Visual Basic 6.0 度量转换为给定ScaleMode的像素度量。

ToString()
已过时.

返回一个表示当前对象的字符串。

(继承自 Object)
TwipsPerPixelX()
已过时.

获取一个值,该值用于根据屏幕设置将 twips 转换为像素。

TwipsPerPixelY()
已过时.

获取一个值,该值用于根据屏幕设置将 twips 转换为像素。

TwipsToPixelsX(Double)
已过时.

将 X 坐标从 twips 转换为像素。

TwipsToPixelsY(Double)
已过时.

将 Y 坐标从 twips 转换为像素。

ValidateControls(ContainerControl)
已过时.

模拟 Visual Basic 6.0 ValidateControls 方法的行为。

WhatsThisMode(Form)
已过时.

显示从 Visual Basic 6.0 升级的窗体的弹出帮助。

ZOrder(Control, Int32)
已过时.

转换用于Visual Basic的 Visual Basic ZOrder 方法。

适用于