Export (0) Print
Expand All
Expand Minimize

VisualBasic.Compatibility Namespace Reference

Functions and objects in the VisualBasic.Compatibility namespace are provided for use by the Visual Basic 6.0 to Visual Basic .NET upgrade tools. In most cases they duplicate functionality that can be achieved using other parts of the .NET Framework; they are only necessary where the Visual Basic 6.0 code model differs significantly from the .NET implementation.

The following tables list functions and objects in the VisualBasic.Compatibility namespace. Additional functions and objects related to the Microsoft.Compatibility.Data namespace are not listed; they are the equivalents of the ADO data binding in Visual Basic 6.0.

VisualBasic.Compatibility Functions

FunctionDescription
CopyArrayDuplicates Visual Basic 6.0 functionality of assigning an array to a Variant.
CursorToIPictureUsed in format conversion.
EqvDuplicates the Visual Basic 6.0 Eqv (equivalence) operator.
FontChangeBoldUsed in converting Visual Basic 6.0 fonts to Visual Basic .NET Font objects.
FontChangeGdiCharSetUsed in converting Visual Basic 6.0 fonts to Visual Basic .NET Font objects.
FontChangeItalicUsed in converting Visual Basic 6.0 fonts to Visual Basic .NET Font objects.
FontChangeNameUsed in converting Visual Basic 6.0 fonts to Visual Basic .NET Font objects.
FontChangeSizeUsed in converting Visual Basic 6.0 fonts to Visual Basic .NET Font objects.
FontChangeStrikeoutUsed in converting Visual Basic 6.0 fonts to Visual Basic .NET Font objects.
FontChangeUnderlineUsed in converting Visual Basic 6.0 fonts to Visual Basic .NET Font objects.
FontToIFontUsed in format conversion.
FormatDuplicates the Visual Basic 6.0 Format function.
FromPixelsXUsed for coordinate conversion.
FromPixelsYUsed for coordinate conversion.
FromPixelsUserHeightUsed for coordinate conversion.
FromPixelsUserWidthUsed for coordinate conversion.
FromPixelsUserXUsed for coordinate conversion.
FromPixelsUserYUsed for coordinate conversion.
GetActiveControlDuplicates the Visual Basic 6.0 Screen.ActiveControl property.
GetCancelDuplicates the functionality of the Cancel property of a Visual Basic 6.0 CommandButton.
GetDefaultDuplicates the functionality of the Default property of a Visual Basic 6.0 CommandButton.
GetEXENameDuplicates the Visual Basic 6.0 App.EXEName property.
GetHInstanceDuplicates the Visual Basic 6.0 App.HInstance property.
GetItemDataDuplicates the functionality of the ItemData property of a Visual Basic 6.0 ListBox or ComboBox.
GetItemStringDuplicates the functionality of retrieving a value from a list in a Visual Basic 6.0 ListBox or ComboBox.
GetPathDuplicates the Visual Basic 6.0 App.Path property.
IconToIpictureUsed in format conversion.
IFontToFontUsed in format conversion.
ImageToIPictureUsed in format conversion.
ImageToIPictureDispUsed in format conversion.
ImpDuplicates the Visual Basic 6.0 Imp (implication) operator.
IPictureDispToImageUsed in format conversion.
IPictureToImageUsed in format conversion.
LoadResDataDuplicates the Visual Basic 6.0 LoadResData function.
LoadResPictureDuplicates the Visual Basic 6.0 LoadResPicture function.
LoadResStringDuplicates the Visual Basic 6.0 LoadResString function.
PixelsToTwipsXUsed for coordinate conversion.
PixelsToTwipsYUsed for coordinate conversion.
SendKeysDuplicates the Visual Basic 6.0 SendKeys function.
SetCancelDuplicates the functionality of the Cancel property of a Visual Basic 6.0 CommandButton.
SetDefaultDuplicates the functionality of the Default property of a Visual Basic 6.0 CommandButton.
SetItemDataDuplicates the functionality of the ItemData property of a Visual Basic 6.0 ListBox or ComboBox.
SetItemStringDuplicates the functionality of setting a value in a list in a Visual Basic 6.0 ListBox or ComboBox.
SetResourceBaseNameUsed with LoadRes functions when a resource file uses a non-standard naming convention.
ShowFormDuplicates the functionality of the Show method of a Visual Basic 6.0 form.
TabLayoutUsed when converting Debug.Print statements that contain the Tab or Spc keywords.
ToPixelsXUsed for coordinate conversion.
ToPixelsYUsed for coordinate conversion.
ToPixelsUserHeightUsed for coordinate conversion.
ToPixelsUserWidthUsed for coordinate conversion.
ToPixelsUserXUsed for coordinate conversion.
ToPixelsUserYUsed for coordinate conversion.
TwipsPerPixelXDuplicates the Visual Basic Screen.TwipsPerPixelX property.
TwipsPerPixelYDuplicates the Visual Basic Screen.TwipsPerPixelY property.
TwipsToPixelsXUsed for coordinate conversion.
TwipsToPixelsYUsed for coordinate conversion.
ValidateControlsDuplicates the functionality of the ValidateControls method of a Visual Basic 6.0 form.
WhatsThisModeDuplicates the functionality of the WhatsThisMode method of a Visual Basic 6.0 form.
ZorderUsed for converting the z-order of controls.

VisualBasic.Compatibility Objects

ObjectDescription
BaseControlArrayParent class for Visual Basic 6.0 control array emulation.
BaseOcxArrayParent class for emulated arrays of ActiveX controls.
ButtonArrayEmulates a Visual Basic 6.0 control array of CommandButton controls.
CheckBoxArrayEmulates a Visual Basic 6.0 control array of CheckBox controls.
CheckedListBoxArrayEmulates a Visual Basic 6.0 control array of ListBox controls with the Style property set to Checked.
ComboBoxArrayEmulates a Visual Basic 6.0 control array of ComboBox controls.
DirListBoxEmulates a Visual Basic 6.0 DirListBox control.
DirListBoxArrayEmulates a Visual Basic 6.0 control array of DirListBox controls.
DriveListBoxEmulates a Visual Basic 6.0 DriveListBox control.
DriveListBoxArrayEmulates a Visual Basic 6.0 control array of DriveListBox controls.
FileListBoxEmulates a Visual Basic 6.0 FileListBox control.
FileListBoxArrayEmulates a Visual Basic 6.0 control array of FileListBox controls.
FixedLengthStringEmulates Visual Basic 6.0 fixed-length strings.
GroupBoxArrayEmulates a Visual Basic 6.0 control array of Frame controls.
HScrollBarArrayEmulates a Visual Basic 6.0 control array of HScrollBar controls.
LabelArrayEmulates a Visual Basic 6.0 control array of Label controls.
ListBoxArrayEmulates a Visual Basic 6.0 control array of ListBox controls.
ListBoxItemEmulates the ItemData property of a ListBox control.
MenuItemArrayEmulates a Visual Basic 6.0 control array of Menu controls.
PanelArrayEmulates a Visual Basic 6.0 control array of PictureBox controls that contain child controls.
PictureBoxArrayEmulates a Visual Basic 6.0 control array of PictureBox controls.
RadioButtonArrayEmulates a Visual Basic 6.0 control array of OptionButton controls.
TabControlArrayEmulates a Visual Basic 6.0 control array of TabStrip controls.
TextBoxArrayEmulates a Visual Basic 6.0 control array of TextBox controls.
TimerArrayEmulates a Visual Basic 6.0 control array of Timer controls.
VscrollBarArrayEmulates a Visual Basic 6.0 control array of VScrollBar controls.

See Also

Visual Basic 6.0 Compatibility Library | Introduction to Visual Basic .NET for Visual Basic Veterans

Show:
© 2014 Microsoft