Sie sind auf Seite 1von 50

Part V

Appendixes
A B Object Mapping Reference 467 Function Mapping Reference 515

Appendix A

Object Mapping Reference


This appendix shows the property, method, and event mappings from Microsoft Visual Basic 6 to Visual Basic .NET for common objects. The Upgrade Wizard uses these mappings during the upgrade. Each section covers one Visual Basic 6 object and begins by briefly stating what object it maps to in Visual Basic .NET. The table in each section then gives the individual mappings for each property, method, and event. If the Visual Basic .NET column indicates No mapping, it means that there is no one-toone mapping, and therefore the Upgrade Wizard will be unable to move the property, method, or event to Visual Basic .NET. For most objects, the type of each element remains the same after upgrade, and any exceptions are indicated within the table. With the App object, however, many element types have not been preserved. To make the distinction clear, the table for the App object has an additional column indicating the new type.

App
No direct equivalent to upgrade to. Individual properties and methods are upgraded as shown in the table.
Visual Basic 6 Comments Type Property Visual Basic .NET System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).Comments System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.L ocation).CompanyName VB6.GetEXEName Type Method

CompanyName

Property

Method

EXEName

Property

Method
(continued)

467

468

Part V

Appendixes

Visual Basic 6 FileDescription

Type Property

Visual Basic .NET System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).FileDescription No mapping VB6.GetHInstance System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).LegalCopyright System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).LegalTrademarks No mapping No mapping No mapping System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).FileMajorPart System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).FileMinorPart No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping VB6.GetPath UBound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess.ProcessName)) > 0

Type Method

HelpFile HInstance LegalCopyright

Property Property Property

Method Method

LegalTrademarks

Property

Method

LogEvent LogMode LogPath Major

Method Property Property Property

Method

Minor

Property

Method

NonModalAllowed OleRequestPendingMsgText OleRequestPendingMsgTitle OleRequestPendingTimeout OleServerBusyMsgText OleServerBusyMsgTitle OleServerBusyRaiseError OleServerBusyTimeout Path PrevInstance (Boolean)

Property Property Property Property Property Property Property Property Property Property

Method Expression

Appendix A

Object Mapping Reference

469

Visual Basic 6 ProductName

Type Property

Visual Basic .NET System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).ProductName No mapping No mapping No mapping No mapping No mapping No mapping System.Reflection.Assembly.GetExecutingAssembly.GetName.Name No mapping for Set No mapping

Type Method

RetainedProject Revision StartLogging StartMode TaskVisible ThreadID Title

Property Property Method Property Property Property Property

Method

UnattendedApp

Property

CheckBox
Upgrades to System.Windows.Form.CheckBox.
Visual Basic 6 Alignment Appearance BackColor Caption CausesValidation Click Container DataChanged DataField DataFormat DataMember DataSource Type Property Property Property Property Property Event Property Property Property Property Property Property Visual Basic .NET CheckAlign FlatStyle BackColor Text CausesValidation CheckStateChanged Parent No mapping For ADO, used in VB6_AddADODatabinding method No mapping For ADO, used in VB6_AddADODatabinding method For ADO, used in VB6_AddADODatabinding method
(continued)

470

Part V

Appendixes

Visual Basic 6 DisabledPicture DownPicture Drag DragDrop DragIcon DragMode DragOver Enabled Font FontBold FontItalic FontName FontSize FontStrikethru FontUnderline ForeColor GotFocus Height HelpContextID HWnd Index KeyDown KeyPress KeyUp Left LostFocus MaskColor MouseDown MouseIcon MouseMove MousePointer MouseUp

Type Property Property Method Event Property Property Event Property Property Property Property Property Property Property Property Property Event Property Property Property Property Event Event Event Property Event Property Event Property Event Property Event

Visual Basic .NET No mapping No mapping No mapping No mapping No mapping No mapping No mapping Enabled Font Font.Bold, VB6.FontChangeBold Font.Italic, VB6.FontChangeItalic Font.Name, VB6.FontChangeName Font.SizeInPoints, VB6.FontChangeSize Font.StrikeOut, VB6.FontChangeStrikeOut Font.Underline, VB6.FontChangeUnderline ForeColor Enter Height No mapping Handle Index property of ControlArray object KeyDown KeyPress KeyUp Left Leave No mapping MouseDown No mapping MouseMove Cursor MouseUp

Appendix A

Object Mapping Reference

471

Visual Basic 6 Move Name OLECompleteDrag OLEDrag OLEDragDrop OLEDragOver OLEDropMode OLEGiveFeedback OLESetData OLEStartDrag Parent Picture Refresh RightToLeft SetFocus ShowWhatsThis Style TabIndex TabStop Tag ToolTipText Top UseMaskColor Validate Value Visible WhatsThisHelpID Width ZOrder

Type Method Property Event Method Event Event Property Event Event Event Property Property Method Property Method Method Property Property Property Property Property Property Property Event Property Property Property Property Method

Visual Basic .NET SetBounds Name No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping FindForm Image Refresh RightToLeft Focus No mapping Appearance TabIndex TabStop Tag SetToolTip method on ToolTip component Top No mapping Validating CheckState Visible No mapping Width VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

472

Part V

Appendixes

ComboBox
Upgrades to System.Windows.Forms.ComboBox.
Visual Basic 6 AddItem Appearance BackColor CausesValidation Change Clear Click Container DataChanged DataField DataFormat DataMember DataSource DblClick Drag DragDrop DragIcon DragMode DragOver DropDown Enabled Font FontBold FontItalic FontName FontSize FontStrikethru FontUnderline Type Method Property Property Property Event Method Event Property Property Property Property Property Property Event Method Event Property Property Event Event Property Property Property Property Property Property Property Property Visual Basic .NET Items.Add, or Items.Insert (if Index parameter exists) No mapping BackColor CausesValidation TextChanged Items.Clear SelectedIndexChanged Parent No mapping For ADO, used in VB6_AddADODatabinding method No mapping For ADO, used in VB6_AddADODatabinding method For ADO, used in VB6_AddADODatabinding method No mapping No mapping No mapping No mapping No mapping No mapping DropDown Enabled Font Font.Bold, VB6.FontChangeBold Font.Italic, VB6.FontChangeItalic Font.Name, VB6.FontChangeName Font.SizeInPoints, VB6.FontChangeSize Font.StrikeOut, VB6.FontChangeStrikeOut Font.Underline, VB6.FontChangeUnderline

Appendix A

Object Mapping Reference

473

Visual Basic 6 ForeColor GotFocus Height HelpContextID HWnd IMEMode Index IntegralHeight ItemData KeyDown KeyPress KeyUp Left List ListCount ListIndex Locked LostFocus MouseIcon MousePointer Move Name NewIndex OLECompleteDrag OLEDrag OLEDragDrop OLEDragMode OLEDragOver OLEDropMode OLEGiveFeedback OLESetData OLEStartDrag Parent

Type Property Event Property Property Property Property Property Property Property Event Event Event Property Property Property Property Property Event Property Property Method Property Property Event Method Event Property Event Property Event Event Event Property

Visual Basic .NET ForeColor Enter Height No mapping Handle ImeMode Index property of ControlArray object IntegralHeight VB6.GetItemData, VB6.SetItemData methods KeyDown KeyPress KeyUp Left VB6.GetItemString, VB6.SetItemString methods Items.Count SelectedIndex No mapping Leave No mapping Cursor SetBounds Name Return result of Items.Add (if preceding line is Items.Add) No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping FindForm
(continued)

474

Part V

Appendixes

Visual Basic 6 Refresh RemoveItem RightToLeft Scroll SelLength SelStart SelText SetFocus ShowWhatsThis Sorted Style TabIndex TabStop Tag Text ToolTipText Top TopIndex Validate Visible WhatsThisHelpID Width ZOrder

Type Method Method Property Event Property Property Property Method Method Property Property Property Property Property Property Property Property Property Event Property Property Property Method

Visual Basic .NET Refresh Items.RemoveAt RightToLeft No mapping SelectionLength SelectionStart SelectedText Focus No mapping Sorted DropDownStyle TabIndex TabStop Tag Text SetToolTip method on ToolTip component Top No mapping Validating Visible No mapping Width VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

Appendix A

Object Mapping Reference

475

CommandButton
Upgrades to System.Windows.Forms.Button.
Visual Basic 6 Appearance BackColor Cancel Caption CausesValidation Click Container Default DisabledPicture DownPicture Drag DragDrop DragIcon DragMode DragOver Enabled Font FontBold FontItalic FontName FontSize FontStrikethru FontUnderline GotFocus Height HelpContextID hWnd Index KeyDown Type Property Property Property Property Property Event Property Property Property Property Method Event Property Property Event Property Property Property Property Property Property Property Property Event Property Property Property Property Event Visual Basic .NET No mapping BackColor At design time, Form.CancelButton property At run time,VB6.GetCancel, VB6.SetCancel methods Text CausesValidation Click Parent At design time, Form.AcceptButton At run time, VB6.GetDefault, VB6.SetDefault methods No mapping No mapping No mapping No mapping No mapping No mapping No mapping Enabled Font Font.Bold, VB6.FontChangeBold Font.Italic, VB6.FontChangeItalic Font.Name, VB6.FontChangeName Font.SizeInPoints, VB6.FontChangeSize Font.StrikeOut, VB6.FontChangeStrikeOut Font.Underline, VB6.FontChangeUnderline Enter Height No mapping Handle Index property of ControlArray object KeyDown
(continued)

476

Part V

Appendixes

Visual Basic 6 KeyPress KeyUp Left LostFocus MaskColor MouseDown MouseIcon MouseMove MousePointer MouseUp Move Name OLECompleteDrag OLEDrag OLEDragDrop OLEDragOver OLEDropMode OLEGiveFeedback OLESetData OLEStartDrag Parent Picture Refresh RightToLeft SetFocus ShowWhatsThis Style TabIndex TabStop Tag ToolTipText Top UseMaskColor

Type Event Event Property Event Property Event Property Event Property Event Method Property Event Method Event Event Property Event Event Event Property Property Method Property Method Method Property Property Property Property Property Property Property

Visual Basic .NET KeyPress KeyUp Left Leave No mapping MouseDown No mapping MouseMove Cursor MouseUp SetBounds Name No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping FindForm Image Refresh RightToLeft Focus No mapping No mapping TabIndex TabStop Tag SetToolTip method on ToolTip component Top No mapping

Appendix A

Object Mapping Reference

477

Visual Basic 6 Value Visible WhatsThisHelpID Width ZOrder

Type Property Property Property Property Method

Visual Basic .NET No mapping for Get PerformClick method if value is nonzero for Set Visible No mapping Width VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

DirListBox
Upgrades to Microsoft.VisualBasic.Compatibility.VB6.DirListBox.
Visual Basic 6 Appearance BackColor CausesValidation Change Click Container Drag DragDrop DragIcon DragMode DragOver Enabled Font FontBold FontItalic FontName FontSize FontStrikethru FontUnderline ForeColor GotFocus Type Property Property Property Event Event Property Method Event Property Property Event Property Property Property Property Property Property Property Property Property Event Visual Basic .NET Used to determine BorderStyle BackColor CausesValidation Change SelectedIndexChanged Parent No mapping No mapping No mapping No mapping No mapping Enabled Font Font.Bold, VB6.FontChangeBold Font.Italic, VB6.FontChangeItalic Font.Name, VB6.FontChangeName Font.SizeInPoints, VB6.FontChangeSize Font.StrikeOut, VB6.FontChangeStrikeOut Font.Underline, VB6.FontChangeUnderline ForeColor Enter
(continued)

478

Part V

Appendixes

Visual Basic 6 Height HelpContextID HWnd IMEMode Index KeyDown KeyPress KeyUp Left List ListCount ListIndex LostFocus MouseDown MouseIcon MouseMove MousePointer MouseUp Move Name OLECompleteDrag OLEDrag OLEDragDrop OLEDragMode OLEDragOver OLEDropMode OLEGiveFeedback OLESetData OLEStartDrag Parent Path Refresh Scroll SetFocus

Type Property Property Property Property Property Event Event Event Property Property Property Property Event Event Property Event Property Event Method Property Event Method Event Property Event Property Event Event Event Property Property Method Event Method

Visual Basic .NET Height No mapping Handle ImeMode Index property of ControlArray object KeyDown KeyPress KeyUp Left DirList DirListCount DirListIndex Leave MouseDown No mapping MouseMove Cursor MouseUp SetBounds Name No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping FindForm Path Refresh No mapping Focus

Appendix A

Object Mapping Reference

479

Visual Basic 6 ShowWhatsThis TabIndex TabStop Tag ToolTipText Top TopIndex Validate Visible WhatsThisHelpID Width ZOrder

Type Method Property Property Property Property Property Property Event Property Property Property Method

Visual Basic .NET No mapping TabIndex TabStop Tag SetToolTip method on ToolTip component Top TopIndex Validating Visible No mapping Width VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

DriveListBox
Upgrades to Microsoft.VisualBasic.Compatibility.VB6.DriveListBox.
Visual Basic 6 Appearance BackColor CausesValidation Change Container Drag DragDrop DragIcon DragMode DragOver Drive Enabled Font FontBold Type Property Property Property Event Property Method Event Property Property Event Property Property Property Property Visual Basic .NET No mapping BackColor CausesValidation SelectedIndexChanged Parent No mapping No mapping No mapping No mapping No mapping Drive Enabled Font Font.Bold, VB6.FontChangeBold
(continued)

480

Part V

Appendixes

Visual Basic 6 FontItalic FontName FontSize FontStrikethru FontUnderline ForeColor GotFocus Height HelpContextID HWnd Index KeyDown KeyPress KeyUp Left List ListCount ListIndex LostFocus MouseIcon MousePointer Move Name OLECompleteDrag OLEDrag OLEDragDrop OLEDragOver OLEDropMode OLEGiveFeedback OLESetData OLEStartDrag Parent Refresh Scroll

Type Property Property Property Property Property Property Event Property Property Property Property Event Event Event Property Property Property Property Event Property Property Method Property Event Method Event Event Property Event Event Event Property Method Event

Visual Basic .NET Font.Italic, VB6.FontChangeItalic Font.Name, VB6.FontChangeName Font.SizeInPoints, VB6.FontChangeSize Font.StrikeOut, VB6.FontChangeStrikeOut Font.Underline, VB6.FontChangeUnderline ForeColor Enter Height No mapping Handle Index property of ControlArray object KeyDown KeyPress KeyUp Left Items Items.Count SelectedIndex Leave No mapping Cursor SetBounds Name No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping FindForm Refresh No mapping

Appendix A

Object Mapping Reference

481

Visual Basic 6 SetFocus ShowWhatsThis TabIndex TabStop Tag ToolTipText Top TopIndex Validate Visible WhatsThisHelpID Width ZOrder

Type Method Method Property Property Property Property Property Property Event Property Property Property Method

Visual Basic .NET Focus No mapping TabIndex TabStop Tag SetToolTip method on ToolTip component Top No mapping Validating Visible No mapping Width VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

FileListBox
Upgrades to Microsoft.VisualBasic.Compatibility.VB6.FileListBox.
Visual Basic 6 Appearance Archive BackColor CausesValidation Click Container DblClick Drag DragDrop DragIcon DragMode DragOver Enabled Type Property Property Property Property Event Property Event Method Event Property Property Event Property Visual Basic .NET Used to determine BorderStyle Archive BackColor CausesValidation SelectedIndexChanged Parent DoubleClick No mapping No mapping No mapping No mapping No mapping Enabled
(continued)

482

Part V

Appendixes

Visual Basic 6 FileName Font FontBold FontItalic FontName FontSize FontStrikethru FontUnderline ForeColor GotFocus Height HelpContextID Hidden hWnd IMEMode Index KeyDown KeyPress KeyUp Left List ListCount ListIndex LostFocus MouseDown MouseIcon MouseMove MousePointer MouseUp Move MultiSelect Name Normal OLECompleteDrag

Type Property Property Property Property Property Property Property Property Property Event Property Property Property Property Property Property Event Event Event Property Property Property Property Event Event Property Event Property Event Method Property Property Property Event

Visual Basic .NET FileName Font Font.Bold, VB6.FontChangeBold Font.Italic, VB6.FontChangeItalic Font.Name, VB6.FontChangeName Font.SizeInPoints, VB6.FontChangeSize Font.StrikeOut, VB6.FontChangeStrikeOut Font.Underline, VB6.FontChangeUnderline ForeColor Enter Height No mapping Hidden Handle ImeMode Index property of ControlArray object KeyDown KeyPress KeyUp Left Items Items.Count SelectedIndex Leave MouseDown No mapping MouseMove Cursor MouseUp SetBounds SelectionMode Name Normal No mapping

Appendix A

Object Mapping Reference

483

Visual Basic 6 OLEDrag OLEDragDrop OLEDragMode OLEDragOver OLEDropMode OLEGiveFeedback OLESetData OLEStartDrag Parent Path PathChange Pattern PatternChange ReadOnly Refresh Scroll Selected SetFocus ShowWhatsThis System TabIndex TabStop Tag ToolTipText Top TopIndex Validate Visible WhatsThisHelpID Width ZOrder

Type Method Event Property Event Property Event Event Event Property Property Event Property Event Property Method Event Property Method Method Property Property Property Property Property Property Property Event Property Property Property Method

Visual Basic .NET No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping FindForm Path PathChange Pattern PatternChange ReadOnly Refresh No mapping GetSelected, SetSelected Focus No mapping System TabIndex TabStop Tag SetToolTip method on ToolTip component Top TopIndex Validating Visible No mapping Width VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

484

Part V

Appendixes

Form
Upgrades to System.Windows.Forms.Form.
Visual Basic 6 Activate ActiveControl Appearance AutoRedraw BackColor BorderStyle Caption Circle Click ClipControls Cls ControlBox Controls Count CurrentX CurrentY DblClick Deactivate DragDrop DragOver DrawMode DrawStyle DrawWidth Enabled FillColor FillStyle Font FontBold FontItalic FontName FontSize Type Event Property Property Property Property Property Property Method Event Property Method Property Property Property Property Property Event Event Event Event Property Property Property Property Property Property Property Property Property Property Property Visual Basic .NET Activated ActiveControl No mapping No mapping BackColor FormBorderStyle Text No mapping Click No mapping No mapping ControlBox Controls Controls.Count No mapping No mapping DoubleClick Deactivate No mapping No mapping No mapping No mapping No mapping Enabled No mapping No mapping Font Font.Bold, VB6.FontChangeBold Font.Italic, VB6.FontChangeItalic Font.Name, VB6.FontChangeName Font.SizeInPoints, VB6.FontChangeSize

Appendix A

Object Mapping Reference

485

Visual Basic 6 FontStrikethru FontTransparent FontUnderline ForeColor GotFocus HasDC HDC Height HelpContextID Hide HWnd Icon Image Initialize KeyDown KeyPress KeyPreview KeyUp Left Line LinkClose LinkError LinkExecute LinkMode LinkOpen LinkTopic Load LostFocus MaxButton MDIChild

Type Property Property Property Property Event Property Property Property Property Method Property Property Property Event Event Event Property Event Property Method Event Event Event Property Event Property Event Event Property Property

Visual Basic .NET Font.StrikeOut, VB6.FontChangeStrikeOut No mapping Font.Underline, VB6.FontChangeUnderline ForeColor GotFocus No mapping No mapping Height No mapping Hide Handle Icon No mapping Initialize method called from New event KeyDown KeyPress KeyPreview KeyUp Left No mapping No mapping No mapping No mapping No mapping No mapping No mapping Load LostFocus MaximizeBox At design time, if value is True, then MDIParent property is set in the New event At run time, maps to expression Not f.MDIParent Is Nothing MinimizeBox MouseDown
(continued)

MinButton MouseDown

Property Event

486

Part V

Appendixes

Visual Basic 6 MouseIcon MouseMove MousePointer MouseUp Move Moveable Name NegotiateMenus OLECompleteDrag OLEDrag OLEDragDrop OLEDragOver OLEDropMode OLEGiveFeedback OLESetData OLEStartDrag Paint PaintPicture Palette PaletteMode Picture Point PopupMenu PrintForm PSet QueryUnload Refresh Resize RightToLeft Scale

Type Property Event Property Event Method Property Property Property Event Method Event Event Property Event Event Event Event Method Property Property Property Method Method Method Method Event Method Event Property Method

Visual Basic .NET No mapping MouseMove Cursor MouseUp SetBounds No mapping Name No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping Paint No mapping No mapping No mapping BackgroundImage No mapping No mapping Not mapped (See Chapter 15 for how to implement PrintForm.) No mapping Closing Refresh Resize RightToLeft No mapping

Appendix A

Object Mapping Reference

487

Visual Basic 6 ScaleHeight ScaleLeft ScaleMode ScaleTop ScaleWidth ScaleX ScaleY SetFocus Show

Type Property Property Property Property Property Method Method Method Method

Visual Basic .NET At run time, x.ClientRectangle.Height method for Get No mapping No mapping No mapping At run time, x.ClientRectangle.Width method for Get No mapping No mapping Activate Show, or ShowDialog if Modal parameter is vbModal, VB6.ShowForm method if Modal parameter is a variable ShowInTaskBar StartPosition Tag Terminate method, called from Dispose event No mapping No mapping Top Closed VB6.ValidateControls method Visible HelpButton No mapping VB6.WhatsThisMode method Width WindowState VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

ShowInTaskbar StartUpPosition Tag Terminate TextHeight TextWidth Top Unload ValidateControls Visible WhatsThisButton WhatsThisHelp WhatsThisMode Width WindowState ZOrder

Property Property Property Event Method Method Property Event Method Property Property Property Method Property Property Method

488

Part V

Appendixes

Frame
Upgrades to (1) System.Windows.Forms.Panel, or (2) System.Windows.Forms.GroupBox if control has a border.
Visual Basic 6 Appearance BackColor BorderStyle Caption Click ClipControls Container DblClick Drag DragDrop DragIcon DragMode DragOver Enabled Font FontBold FontItalic FontName FontSize FontStrikethru FontUnderline ForeColor Height HelpContextID hWnd Index Left Type Property Property Property Property Event Property Property Event Method Event Property Property Event Property Property Property Property Property Property Property Property Property Property Property Property Property Property Visual Basic .NET No mapping BackColor (2) BorderStyle (1) Text (1) Click No mapping Parent (1) DoubleClick No mapping No mapping No mapping No mapping No mapping Enabled Font Font.Bold, VB6.FontChangeBold Font.Italic, VB6.FontChangeItalic Font.Name, VB6.FontChangeName Font.SizeInPoints, VB6.FontChangeSize Font.StrikeOut, VB6.FontChangeStrikeOut Font.Underline, VB6.FontChangeUnderline ForeColor Height No mapping Handle Index property of ControlArray object Left

Appendix A

Object Mapping Reference

489

Visual Basic 6 MouseDown MouseIcon MouseMove MousePointer MouseUp Move Name OLECompleteDrag OLEDrag OLEDragDrop OLEDragOver OLEDropMode OLEGiveFeedback OLESetData OLEStartDrag Parent Refresh RightToLeft ShowWhatsThis TabIndex Tag ToolTipText Top Visible WhatsThisHelpID Width ZOrder

Type Event Property Event Property Event Method Property Event Method Event Event Property Event Event Event Property Method Property Method Property Property Property Property Property Property Property Method

Visual Basic .NET (1) MouseDown No mapping (1) MouseMove (1) Cursor (1) MouseUp SetBounds Name No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping FindForm Refresh RightToLeft No mapping TabIndex Tag SetToolTip method on ToolTip component Top Visible No mapping Width VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

490

Part V

Appendixes

HScrollBar
Upgrades to System.Windows.Forms.HScrollBar.
Visual Basic 6 CausesValidation Change Container Drag DragDrop DragIcon DragMode DragOver Enabled GotFocus Height HelpContextID HWnd Index KeyDown KeyPress KeyUp LargeChange Type Property Event Property Method Event Property Property Event Property Event Property Property Property Property Event Event Event Property Visual Basic .NET CausesValidation Change method called from Scroll event Parent No mapping No mapping No mapping No mapping No mapping Enabled Enter Height No mapping Handle Index property of ControlArray object KeyDown KeyPress KeyUp At design time, LargeChange At run time, three lines of code to calculate new value Left Leave At design time, Maximum At run time, value calculated from LargeChange Minimum No mapping Cursor SetBounds Name FindForm Refresh RightToLeft

Left LostFocus Max Min MouseIcon MousePointer Move Name Parent Refresh RightToLeft

Property Event Property Property Property Property Method Property Property Method Property

Appendix A

Object Mapping Reference

491

Visual Basic 6 Scroll

Type Event

Visual Basic .NET Scroll event, or Scroll_renamed method called from Scroll event if Change event exists Focus No mapping SmallChange TabIndex TabStop Tag Top Validating Value Visible No mapping Width VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

SetFocus ShowWhatsThis SmallChange TabIndex TabStop Tag Top Validate Value Visible WhatsThisHelpID Width ZOrder

Method Method Property Property Property Property Property Event Property Property Property Property Method

Image
Upgrades to System.Windows.Forms.PictureBox.
Visual Basic 6 Appearance BorderStyle Click Container DataChanged DataField DataFormat DataMember DataSource Type Property Property Event Property Property Property Property Property Property Visual Basic .NET Used to determine BorderStyle BorderStyle Click Parent No mapping For ADO, used in VB6_AddADODatabinding method No mapping For ADO, used in VB6_AddADODatabinding method For ADO, used in VB6_AddADODatabinding method
(continued)

492

Part V

Appendixes

Visual Basic 6 DblClick Drag DragDrop DragIcon DragMode DragOver Enabled Height Index Left MouseDown MouseIcon MouseMove MousePointer MouseUp Move Name OLECompleteDrag OLEDrag OLEDragDrop OLEDragMode OLEDragOver OLEDropMode OLEGiveFeedback OLESetData OLEStartDrag Parent Picture Refresh ShowWhatsThis Stretch Tag ToolTipText Top

Type Event Method Event Property Property Event Property Property Property Property Event Property Event Property Event Method Property Event Method Event Property Event Property Event Event Event Property Property Method Method Property Property Property Property

Visual Basic .NET DoubleClick No mapping No mapping No mapping No mapping No mapping Enabled Height Index property of ControlArray object Left MouseDown No mapping MouseMove Cursor MouseUp SetBounds Name No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping FindForm Image Refresh No mapping SizeMode Tag SetToolTip method on ToolTip component Top

Appendix A

Object Mapping Reference

493

Visual Basic 6 Visible WhatsThisHelpID Width ZOrder

Type Property Property Property Method

Visual Basic .NET Visible No mapping Width VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

Label
Upgrades to System.Windows.Forms.Label.
Visual Basic 6 Alignment Appearance AutoSize BackColor BackStyle BorderStyle Caption Change Click Container DataChanged DataField DataFormat DataMember DataSource DblClick Drag DragDrop DragIcon DragMode Type Property Property Property Property Property Property Property Event Event Property Property Property Property Property Property Event Method Event Property Property Visual Basic .NET TextAlign Used to determine BorderStyle AutoSize BackColor No mapping Used to determine BorderStyle Text No mapping Click Parent No mapping For ADO, used in VB6_AddADODatabinding method No mapping For ADO, used in VB6_AddADODatabinding method For ADO, used in VB6_AddADODatabinding method DoubleClick No mapping No mapping No mapping No mapping
(continued)

494

Part V

Appendixes

Visual Basic 6 DragOver Enabled Font FontBold FontItalic FontName FontSize FontStrikethru FontUnderline ForeColor Height Index Left LinkClose LinkError LinkExecute LinkItem LinkMode LinkNotify LinkOpen LinkPoke LinkRequest LinkSend LinkTimeout LinkTopic MouseDown MouseIcon MouseMove MousePointer MouseUp Move Name OLECompleteDrag OLEDrag

Type Event Property Property Property Property Property Property Property Property Property Property Property Property Event Event Method Property Property Event Event Method Method Method Property Property Event Property Event Property Event Method Property Event Method

Visual Basic .NET No mapping Enabled Font Font.Bold, VB6.FontChangeBold Font.Italic, VB6.FontChangeItalic Font.Name, VB6.FontChangeName Font.SizeInPoints, VB6.FontChangeSize Font.StrikeOut, VB6.FontChangeStrikeOut Font.Underline, VB6.FontChangeUnderline ForeColor Height Index property of ControlArray object Left No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping MouseDown No mapping MouseMove Cursor MouseUp SetBounds Name No mapping No mapping

Appendix A

Object Mapping Reference

495

Visual Basic 6 OLEDragDrop OLEDragOver OLEDropMode OLEGiveFeedback OLESetData OLEStartDrag Parent Refresh RightToLeft ShowWhatsThis TabIndex Tag ToolTipText Top UseMnemonic Visible WhatsThisHelpID Width WordWrap ZOrder

Type Event Event Property Event Event Event Property Method Property Method Property Property Property Property Property Property Property Property Property Method

Visual Basic .NET No mapping No mapping No mapping No mapping No mapping No mapping FindForm Refresh RightToLeft No mapping TabIndex Tag SetToolTip method on ToolTip component Top UseMnemonic Visible No mapping Width No mapping VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

Line
Upgrades to System.Windows.Forms.Label if horizontal or vertical line. Diagonal lines are not upgraded.
Visual Basic 6 BorderColor BorderStyle BorderWidth Container DrawMode Type Property Property Property Property Property Visual Basic .NET BackColor No mapping Width for horizontal lines, or Height for vertical lines Parent No mapping
(continued)

496

Part V

Appendixes

Visual Basic 6 Index Name Parent Refresh Tag Visible X1 X2 Y1 Y2 ZOrder

Type Property Property Property Method Property Property Property Property Property Property Method

Visual Basic .NET Index property of ControlArray object Name FindForm Refresh Tag Visible Used for Location and Size at design time Used for Location and Size at design time Used for Location and Size at design time Used for Location and Size at design time VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

ListBox
Upgrades to (1) System.Windows.Forms.ListBox, or (2) System.Windows.Forms.CheckedListBox if Style =1.
Visual Basic 6 AddItem Appearance BackColor CausesValidation Clear Click Columns Container DataChanged DataField DataFormat DataMember Type Method Property Property Property Method Event Property Property Property Property Property Property Visual Basic .NET Items.Add Items.Insert (if Index parameter exists) Used to determine BorderStyle BackColor CausesValidation Items.Clear SelectedIndexChanged Used to determine MultiColumn, ColumnWidth properties Parent No mapping For ADO, used in VB6_AddADODatabinding method No mapping For ADO, used in VB6_AddADODatabinding method

Appendix A

Object Mapping Reference

497

Visual Basic 6 DataSource DblClick Drag DragDrop DragIcon DragMode DragOver Enabled Font FontBold FontItalic FontName FontSize FontStrikethru FontUnderline ForeColor GotFocus Height HelpContextID hWnd IMEMode Index IntegralHeight ItemCheck ItemData KeyDown KeyPress KeyUp Left List ListCount ListIndex LostFocus

Type Property Event Method Event Property Property Event Property Property Property Property Property Property Property Property Property Event Property Property Property Property Property Property Event Property Event Event Event Property Property Property Property Event

Visual Basic .NET For ADO, used in VB6_AddADODatabinding method DoubleClick No mapping No mapping No mapping No mapping No mapping Enabled Font Font.Bold, VB6.FontChangeBold Font.Italic, VB6.FontChangeItalic Font.Name, VB6.FontChangeName Font.SizeInPoints, VB6.FontChangeSize Font.StrikeOut, VB6.FontChangeStrikeOut Font.Underline, VB6.FontChangeUnderline ForeColor Enter Height No mapping Handle ImeMode Index property of ControlArray object IntegralHeight (2) ItemCheck VB6.GetItemData, VB6.SetItemData methods KeyDown KeyPress KeyUp Left VB6.GetItemString, VB6.SetItemString methods Items.Count SelectedIndex Leave
(continued)

498

Part V

Appendixes

Visual Basic 6 MouseDown MouseIcon MouseMove MousePointer MouseUp Move MultiSelect Name NewIndex OLECompleteDrag OLEDrag OLEDragDrop OLEDragMode OLEDragOver OLEDropMode OLEGiveFeedback OLESetData OLEStartDrag Parent Refresh RemoveItem RightToLeft Scroll SelCount Selected SetFocus ShowWhatsThis Sorted Style TabIndex TabStop

Type Event Property Event Property Event Method Property Property Property Event Method Event Property Event Property Event Event Event Property Method Method Property Event Property Property Method Method Property Property Property Property

Visual Basic .NET MouseDown No mapping MouseMove Cursor MouseUp SetBounds SelectionMode Name Return result of Items.Add (if preceding line is Items.Add) No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping FindForm Refresh Items.RemoveAt RightToLeft No mapping (1) SelectedItems.Count (2) CheckedIndices.Count (1) GetSelected, SetSelected (2) GetItemChecked, SetItemChecked Focus No mapping Sorted Used to determine control type to upgrade to TabIndex TabStop

Appendix A

Object Mapping Reference

499

Visual Basic 6 Tag Text ToolTipText Top TopIndex Validate Visible WhatsThisHelpID Width ZOrder

Type Property Property Property Property Property Event Property Property Property Method

Visual Basic .NET Tag Text SetToolTip method on ToolTip component Top TopIndex Validating Visible No mapping Width VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

MDIForm
Upgrades to System.Windows.Forms.Form, with IsMDIContainer property set to True.
Visual Basic 6 Activate ActiveControl ActiveForm Appearance Arrange AutoShowChildren BackColor Caption Click Controls Count DblClick Deactivate Type Event Property Property Property Method Property Property Property Event Property Property Event Event Visual Basic .NET Activated ActiveControl ActiveMDIChild No mapping LayoutMDI If True, code is added to child forms in New event No mapping Text No mapping Controls Controls.Count DoubleClick Deactivate
(continued)

500

Part V

Appendixes

Visual Basic 6 DragDrop DragOver Enabled Height HelpContextID Hide HWnd Icon Initialize Left LinkClose LinkError LinkExecute LinkMode LinkOpen LinkTopic Load MouseDown MouseIcon MouseMove MousePointer MouseUp Move Moveable Name NegotiateToolbars OLECompleteDrag OLEDrag OLEDragDrop OLEDragOver OLEDropMode OLEGiveFeedback

Type Event Event Property Property Property Method Property Property Event Property Event Event Event Property Event Property Event Event Property Event Property Event Method Property Property Property Event Method Event Event Property Event

Visual Basic .NET No mapping No mapping Enabled Height No mapping Hide Handle Icon Initialize method called from New event Left No mapping No mapping No mapping No mapping No mapping No mapping Load No mapping No mapping No mapping Cursor No mapping SetBounds No mapping Name No mapping No mapping No mapping No mapping No mapping No mapping No mapping

Appendix A

Object Mapping Reference

501

Visual Basic 6 OLESetData OLEStartDrag Picture PopupMenu QueryUnload Resize RightToLeft ScaleHeight ScaleWidth ScrollBars SetFocus Show

Type Event Event Property Method Event Event Property Property Property Property Method Method

Visual Basic .NET No mapping No mapping No mapping No mapping Closing Resize RightToLeft At run time, x.ClientRectangle.Height for Get At run time, x.ClientRectangle.Width for Get No mapping Activate Show, or ShowDialog if Modal parameter is vbModal, VB6.ShowForm method if Modal parameter is a variable StartPosition Tag Terminate method, called from Dispose event Top Closed VB6.ValidateControls method Visible HelpButton No mapping VB6.WhatsThisMode method Width WindowState VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

StartUpPosition Tag Terminate Top Unload ValidateControls Visible WhatsThisButton WhatsThisHelp WhatsThisMode Width WindowState ZOrder

Property Property Event Property Event Method Property Property Property Method Property Property Method

502

Part V

Appendixes

Menu
Upgrades to System.Windows.Forms.MenuItem. A MainMenu control is also automatically added to the form.
Visual Basic 6 Caption Checked Click Enabled HelpContextID Index Name NegotiatePosition Parent Shortcut Tag Visible WindowList Type Property Property Event Property Property Property Property Property Property Property Property Property Property Visual Basic .NET Text Checked Click Enabled No mapping Index property of ControlArray object Name No mapping GetMainMenu.GetForm Shortcut No mapping Visible MDIList

OptionButton
Upgrades to System.Windows.Forms.RadioButton.
Visual Basic 6 Alignment Appearance BackColor Caption CausesValidation Click Container DblClick DisabledPicture DownPicture Type Property Property Property Property Property Event Property Event Property Property Visual Basic .NET CheckAlign FlatStyle BackColor Text CausesValidation CheckedChanged Parent No mapping No mapping No mapping

Appendix A

Object Mapping Reference

503

Visual Basic 6 Drag DragDrop DragIcon DragMode DragOver Enabled Font FontBold FontItalic FontName FontSize FontStrikethru FontUnderline ForeColor GotFocus Height HelpContextID hWnd Index KeyDown KeyPress KeyUp Left LostFocus MaskColor MouseDown MouseIcon MouseMove MousePointer MouseUp Move Name OLECompleteDrag

Type Method Event Property Property Event Property Property Property Property Property Property Property Property Property Event Property Property Property Property Event Event Event Property Event Property Event Property Event Property Event Method Property Event

Visual Basic .NET No mapping No mapping No mapping No mapping No mapping Enabled Font Font.Bold, VB6.FontChangeBold Font.Italic, VB6.FontChangeItalic Font.Name, VB6.FontChangeName Font.SizeInPoints, VB6.FontChangeSize Font.StrikeOut, VB6.FontChangeStrikeOut Font.Underline, VB6.FontChangeUnderline ForeColor Enter Height No mapping Handle Index property of ControlArray object KeyDown KeyPress KeyUp Left Leave No mapping MouseDown No mapping MouseMove Cursor MouseUp SetBounds Name No mapping
(continued)

504

Part V

Appendixes

Visual Basic 6 OLEDrag OLEDragDrop OLEDragOver OLEDropMode OLEGiveFeedback OLESetData OLEStartDrag Parent Picture Refresh RightToLeft SetFocus ShowWhatsThis Style TabIndex TabStop Tag ToolTipText Top UseMaskColor Validate Value Visible WhatsThisHelpID Width ZOrder

Type Method Event Event Property Event Event Event Property Property Method Property Method Method Property Property Property Property Property Property Property Event Property Property Property Property Method

Visual Basic .NET No mapping No mapping No mapping No mapping No mapping No mapping No mapping FindForm Image Refresh RightToLeft Focus No mapping Appearance TabIndex TabStop Tag SetToolTip method on ToolTip component Top No mapping Validating Checked Visible No mapping Width VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

Appendix A

Object Mapping Reference

505

PictureBox
Upgrades to (1) System.Windows.Forms.PictureBox, or (2) System.Windows.Forms.Panel if the control has child controls.
Visual Basic 6 Align Appearance AutoRedraw AutoSize BackColor BorderStyle CausesValidation Change Circle Click ClipControls Cls Container CurrentX CurrentY DataChanged DataField DataFormat DataMember DataSource DblClick Drag DragDrop DragIcon DragMode DragOver Type Property Property Property Property Property Property Property Event Method Event Property Method Property Property Property Property Property Property Property Property Event Method Event Property Property Event Visual Basic .NET Dock Used to determine BorderStyle No mapping (1) SizeMode BackColor Used to determine BorderStyle No mapping No mapping No mapping Click No mapping No mapping Parent No mapping No mapping No mapping For ADO, used in VB6_AddADODatabinding method No mapping For ADO, used in VB6_AddADODatabinding method For ADO, used in VB6_AddADODatabinding method DoubleClick No mapping No mapping No mapping No mapping No mapping
(continued)

506

Part V

Appendixes

Visual Basic 6 DrawMode DrawStyle DrawWidth Enabled FillColor FillStyle Font FontBold FontItalic FontName FontSize FontStrikethru FontTransparent FontUnderline ForeColor GotFocus HasDC HDC Height HelpContextID HWnd Image IMEMode Index KeyDown KeyPress KeyUp Left Line LinkClose LinkError LinkExecute

Type Property Property Property Property Property Property Property Property Property Property Property Property Property Property Property Event Property Property Property Property Property Property Property Property Event Event Event Property Method Event Event Method

Visual Basic .NET No mapping No mapping No mapping Enabled No mapping No mapping Font Font.Bold, VB6.FontChangeBold Font.Italic, VB6.FontChangeItalic Font.Name, VB6.FontChangeName Font.SizeInPoints, VB6.FontChangeSize Font.StrikeOut, VB6.FontChangeStrikeOut No mapping Font.Underline, VB6.FontChangeUnderline ForeColor No mapping No mapping No mapping Height No mapping Handle No mapping No mapping Index property of ControlArray object No mapping No mapping No mapping Left No mapping No mapping No mapping No mapping

Appendix A

Object Mapping Reference

507

Visual Basic 6 LinkItem LinkMode LinkNotify LinkOpen LinkPoke LinkRequest LinkSend LinkTimeout LinkTopic LostFocus MouseDown MouseIcon MouseMove MousePointer MouseUp Move Name OLECompleteDrag OLEDrag OLEDragDrop OLEDragMode OLEDragOver OLEDropMode OLEGiveFeedback OLESetData OLEStartDrag Paint PaintPicture Parent Picture Point PSet

Type Property Property Event Event Method Method Method Property Property Event Event Property Event Property Event Method Property Event Method Event Property Event Property Event Event Event Event Method Property Property Method Method

Visual Basic .NET No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping MouseDown No mapping MouseMove Cursor MouseUp SetBounds Name No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping Paint No mapping FindForm (1) Image (2) BackgroundImage No mapping No mapping
(continued)

508

Part V

Appendixes

Visual Basic 6 Refresh Resize RightToLeft Scale ScaleHeight ScaleLeft ScaleMode ScaleTop ScaleWidth ScaleX ScaleY SetFocus ShowWhatsThis TabIndex TabStop Tag TextHeight TextWidth ToolTipText Top Validate Visible WhatsThisHelpID Width ZOrder

Type Method Event Property Method Property Property Property Property Property Method Method Method Method Property Property Property Method Method Property Property Event Property Property Property Method

Visual Basic .NET Refresh Resize RightToLeft No mapping At run time, x.ClientRectangle.Height for Get No mapping No mapping No mapping At run time, x.ClientRectangle.Width for Get No mapping No mapping Focus No mapping TabIndex TabStop Tag No mapping No mapping SetToolTip method on ToolTip component Top Validating Visible No mapping Width VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

Appendix A

Object Mapping Reference

509

Shape
Upgrades to System.Windows.Forms.Label if shape is a rectangle or square.
Visual Basic 6 BackColor BackStyle BorderColor BorderStyle BorderWidth Container DrawMode FillColor FillStyle Height Index Left Move Name Parent Refresh Shape Tag Top Visible Width ZOrder Type Property Property Property Property Property Property Property Property Property Property Property Property Method Property Property Method Property Property Property Property Property Method Visual Basic .NET BackColor No mapping No mapping BorderStyle if value is solid or transparent No mapping Parent No mapping BackColor, if FillStyle is Solid Used to determine FillColor and BackColor Height Index property of ControlArray object Left SetBounds Name FindForm Refresh Used to determine whether control upgrades or not Tag Top Visible Width VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

510

Part V

Appendixes

TextBox
Upgrades to System.Windows.Forms.TextBox.
Visual Basic 6 Alignment Appearance BackColor BorderStyle CausesValidation Change Click Container DataChanged DataField DataFormat DataMember DataSource DblClick Drag DragDrop DragIcon DragMode DragOver Enabled Font FontBold FontItalic FontName FontSize FontStrikethru FontUnderline ForeColor GotFocus Type Property Property Property Property Property Event Event Property Property Property Property Property Property Event Method Event Property Property Event Property Property Property Property Property Property Property Property Property Event Visual Basic .NET TextAlign Used to determine BorderStyle BackColor Used to determine BorderStyle CausesValidation TextChanged No mapping Parent No mapping For ADO, used in VB6_AddADODatabinding method No mapping For ADO, used in VB6_AddADODatabinding method For ADO, used in VB6_AddADODatabinding method DoubleClick No mapping No mapping No mapping No mapping No mapping Enabled Font Font.Bold, VB6.FontChangeBold Font.Italic, VB6.FontChangeItalic Font.Name, VB6.FontChangeName Font.SizeInPoints, VB6.FontChangeSize Font.StrikeOut, VB6.FontChangeStrikeOut Font.Underline, VB6.FontChangeUnderline ForeColor Enter

Appendix A

Object Mapping Reference

511

Visual Basic 6 Height HelpContextID HideSelection HWnd IMEMode Index KeyDown KeyPress KeyUp Left LinkClose LinkError LinkExecute LinkItem LinkMode LinkNotify LinkOpen LinkPoke LinkRequest LinkSend LinkTimeout LinkTopic Locked LostFocus MaxLength MouseDown MouseIcon MouseMove MousePointer MouseUp Move MultiLine Name OLECompleteDrag

Type Property Property Property Property Property Property Event Event Event Property Event Event Method Property Property Event Event Method Method Method Property Property Property Event Property Event Property Event Property Event Method Property Property Event

Visual Basic .NET Height No mapping HideSelection Handle IMEMode Index property of ControlArray object KeyDown KeyPress KeyUp Left No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping ReadOnly Leave MaxLength MouseDown No mapping MouseMove Cursor MouseUp SetBounds MultilLine Name No mapping
(continued)

512

Part V

Appendixes

Visual Basic 6 OLEDrag OLEDragDrop OLEDragMode OLEDragOver OLEDropMode OLEGiveFeedback OLESetData OLEStartDrag Parent PasswordChar Refresh RightToLeft ScrollBars SelLength SelStart SelText SetFocus ShowWhatsThis TabIndex TabStop Tag Text ToolTipText Top Validate Visible WhatsThisHelpID Width ZOrder

Type Method Event Property Event Property Event Event Event Property Property Method Property Property Property Property Property Method Method Property Property Property Property Property Property Event Property Property Property Method

Visual Basic .NET No mapping No mapping No mapping No mapping No mapping No mapping No mapping No mapping FindForm PasswordChar Refresh RightToLeft ScrollBars SelectionLength SelectionStart SelectedText Focus No mapping TabIndex TabStop Tag Text SetToolTip method on ToolTip component Top Validating Visible No mapping Width VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

Appendix A

Object Mapping Reference

513

Timer
Upgrades to System.Windows.Forms.Timer.
Visual Basic 6 Enabled Index Interval Name Parent Tag Timer Type Property Property Property Property Property Property Event Visual Basic .NET Enabled Index property of ControlArray object Interval Name No mapping No mapping Tick

VScrollBar
Upgrades to System.Windows.Forms.VScrollBar
Visual Basic 6 CausesValidation Change Container Drag DragDrop DragIcon DragMode DragOver Enabled GotFocus Height HelpContextID hWnd Index KeyDown Type Property Event Property Method Event Property Property Event Property Event Property Property Property Property Event Visual Basic .NET CausesValidation Change method called from Scroll event Parent No mapping No mapping No mapping No mapping No mapping Enabled Enter Height No mapping Handle Index property of ControlArray object KeyDown
(continued)

514

Part V

Appendixes

Visual Basic 6 KeyPress KeyUp LargeChange Left LostFocus Max Min MouseIcon MousePointer Move Name Parent Refresh RightToLeft Scroll SetFocus ShowWhatsThis SmallChange TabIndex TabStop Tag Top Validate Value Visible WhatsThisHelpID Width ZOrder

Type Event Event Property Property Event Property Property Property Property Method Property Property Method Property Event Method Method Property Property Property Property Property Event Property Property Property Property Method

Visual Basic .NET KeyPress KeyUp LargeChange at design time; three lines of code at run time to calculate new value Left Leave At design time,Maximum At run time, value calculated from LargeChange Minimum No mapping Cursor SetBounds Name FindForm Refresh RightToLeft Scroll event, or Scroll_renamed method called from Scroll event if Change event exists Focus No mapping SmallChange TabIndex TabStop Tag Top Validating Value Visible No mapping Width VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1

Das könnte Ihnen auch gefallen