VisualBasic.Compatibility Namespace

Functions and objects in the VisualBasic.Compatibility namespace are provided for use by the Visual Basic 6.0 to Visual Basic 2008 upgrade tools. In most cases, they duplicate functionality that can be achieved using other parts of the .NET Framework; they are necessary only 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.

VisualBasic.Compatibility Functions

Function

Description

CopyArray

Duplicates Visual Basic 6.0 functionality of assigning an array to a variant.

CursorToIPicture

Used in format conversion.

Eqv

Duplicates the Visual Basic 6.0 Eqv (equivalence) operator.

FontChangeBold

Used in converting Visual Basic 6.0 fonts to Visual Basic 2008 Font objects.

FontChangeGdiCharSet

Used in converting Visual Basic 6.0 fonts to Visual Basic 2008 Font objects.

FontChangeItalic

Used in converting Visual Basic 6.0 fonts to Visual Basic 2008 Font objects.

FontChangeName

Used in converting Visual Basic 6.0 fonts to Visual Basic 2008 Font objects.

FontChangeSize

Used in converting Visual Basic 6.0 fonts to Visual Basic 2008 Font objects.

FontChangeStrikeout

Used in converting Visual Basic 6.0 fonts to Visual Basic 2008 Font objects.

FontChangeUnderline

Used in converting Visual Basic 6.0 fonts to Visual Basic 2008 Font objects.

FontToIFont

Used in format conversion.

Format

Duplicates the Visual Basic 6.0 Format function.

FromPixelsX

Used for coordinate conversion.

FromPixelsY

Used for coordinate conversion.

FromPixelsUserHeight

Used for coordinate conversion.

FromPixelsUserWidth

Used for coordinate conversion.

FromPixelsUserX

Used for coordinate conversion.

FromPixelsUserY

Used for coordinate conversion.

GetActiveControl

Duplicates the Visual Basic 6.0 Screen.ActiveControl property.

GetCancel

Duplicates the functionality of the Cancel property of a Visual Basic 6.0 CommandButton.

GetDefault

Duplicates the functionality of the Default property of a Visual Basic 6.0 CommandButton.

GetEXEName

Duplicates the Visual Basic 6.0 App.EXEName property.

GetHInstance

Duplicates the Visual Basic 6.0 App.HInstance property.

GetItemData

Duplicates the functionality of the ItemData property of a Visual Basic 6.0 ListBox or ComboBox.

GetItemString

Duplicates the functionality of retrieving a value from a list in a Visual Basic 6.0 ListBox or ComboBox.

GetPath

Duplicates the Visual Basic 6.0 App.Path property.

IconToIPicture

Used in format conversion.

IFontToFont

Used in format conversion.

ImageToIPicture

Used in format conversion.

ImageToIPictureDisp

Used in format conversion.

Imp

Duplicates the Visual Basic 6.0 Imp (implication) operator.

IPictureDispToImage

Used in format conversion.

IPictureToImage

Used in format conversion.

LoadResData

Duplicates the Visual Basic 6.0 LoadResData function.

LoadResPicture

Duplicates the Visual Basic 6.0 LoadResPicture function.

LoadResString

Duplicates the Visual Basic 6.0 LoadResString function.

PixelsToTwipsX

Used for coordinate conversion.

PixelsToTwipsY

Used for coordinate conversion.

SendKeys

Duplicates the Visual Basic 6.0 SendKeys function.

SetCancel

Duplicates the functionality of the Cancel property of a Visual Basic 6.0 CommandButton.

SetDefault

Duplicates the functionality of the Default property of a Visual Basic 6.0 CommandButton.

SetItemData

Duplicates the functionality of the ItemData property of a Visual Basic 6.0 ListBox or ComboBox.

SetItemString

Duplicates the functionality of setting a value in a list in a Visual Basic 6.0 ListBox or ComboBox.

SetResourceBaseName

Used with LoadRes functions when a resource file uses a non-standard naming convention.

ShowForm

Duplicates the functionality of the Show method of a Visual Basic 6.0 form.

TabLayout

Used when converting Debug.Print statements that contain the Tab or Spc keywords.

ToPixelsX

Used for coordinate conversion.

ToPixelsY

Used for coordinate conversion.

ToPixelsUserHeight

Used for coordinate conversion.

ToPixelsUserWidth

Used for coordinate conversion.

ToPixelsUserX

Used for coordinate conversion.

ToPixelsUserY

Used for coordinate conversion.

TwipsPerPixelX

Duplicates the Visual Basic Screen.TwipsPerPixelX property.

TwipsPerPixelY

Duplicates the Visual Basic Screen.TwipsPerPixelY property.

TwipsToPixelsX

Used for coordinate conversion.

TwipsToPixelsY

Used for coordinate conversion.

ValidateControls

Duplicates the functionality of the ValidateControls method of a Visual Basic 6.0 form.

WhatsThisMode

Duplicates the functionality of the WhatsThisMode method of a Visual Basic 6.0 form.

ZOrder

Used for converting the z-order of controls.

VisualBasic.Compatibility Objects

Object

Description

BaseControlArray

Parent class for Visual Basic 6.0 control array emulation.

BaseOcxArray

Parent class for emulated arrays of ActiveX controls.

ButtonArray

Emulates a Visual Basic 6.0 control array of CommandButton controls.

CheckBoxArray

Emulates a Visual Basic 6.0 control array of CheckBox controls.

CheckedListBoxArray

Emulates a Visual Basic 6.0 control array of ListBox controls with the Style property set to Checked.

ComboBoxArray

Emulates a Visual Basic 6.0 control array of ComboBox controls.

DirListBox

Emulates a Visual Basic 6.0 DirListBox control.

DirListBoxArray

Emulates a Visual Basic 6.0 control array of DirListBox controls.

DriveListBox

Emulates a Visual Basic 6.0 DriveListBox control.

DriveListBoxArray

Emulates a Visual Basic 6.0 control array of DriveListBox controls.

FileListBox

Emulates a Visual Basic 6.0 FileListBox control.

FileListBoxArray

Emulates a Visual Basic 6.0 control array of FileListBox controls.

FixedLengthString

Emulates Visual Basic 6.0 fixed-length strings.

GroupBoxArray

Emulates a Visual Basic 6.0 control array of Frame controls.

HScrollBarArray

Emulates a Visual Basic 6.0 control array of HScrollBar controls.

LabelArray

Emulates a Visual Basic 6.0 control array of Label controls.

ListBoxArray

Emulates a Visual Basic 6.0 control array of ListBox controls.

ListBoxItem

Emulates the ItemData property of a ListBox control.

MenuItemArray

Emulates a Visual Basic 6.0 control array of Menu controls.

PanelArray

Emulates a Visual Basic 6.0 control array of PictureBox controls that contain child controls.

PictureBoxArray

Emulates a Visual Basic 6.0 control array of PictureBox controls.

RadioButtonArray

Emulates a Visual Basic 6.0 control array of OptionButton controls.

TabControlArray

Emulates a Visual Basic 6.0 control array of TabStrip controls.

TextBoxArray

Emulates a Visual Basic 6.0 control array of TextBox controls.

TimerArray

Emulates a Visual Basic 6.0 control array of Timer controls.

VScrollBarArray

Emulates a Visual Basic 6.0 control array of VScrollBar controls.

Community Additions

ADD
Show: