Upgrading Microsoft Visual Basic 6.0 to Microsoft Visual Basic .NET w/accompanying CD-ROM
CommandButton
Upgrades to System.Windows.Forms.Button.
| Visual Basic 6 | Type | Visual Basic .NET |
| Appearance | Property | No mapping |
| BackColor | Property | BackColor |
| Cancel | Property | At design time, Form.CancelButton property At run time,VB6.GetCancel, VB6.SetCancel methods |
| Caption | Property | Text |
| CausesValidation | Property | CausesValidation |
| Click | Event | Click |
| Container | Property | Parent |
| Default | Property | At design time, Form.AcceptButton At run time, VB6.GetDefault, VB6.SetDefault methods |
| DisabledPicture | Property | No mapping |
| DownPicture | Property | No mapping |
| Drag | Method | No mapping |
| DragDrop | Event | No mapping |
| DragIcon | Property | No mapping |
| DragMode | Property | No mapping |
| DragOver | Event | No mapping |
| Enabled | Property | Enabled |
| Font | Property | Font |
| FontBold | Property | Font.Bold, VB6.FontChangeBold |
| FontItalic | Property | Font.Italic, VB6.FontChangeItalic |
| FontName | Property | Font.Name, VB6.FontChangeName |
| FontSize | Property | Font.SizeInPoints, VB6.FontChangeSize |
| FontStrikethru | Property | Font.StrikeOut, VB6.FontChangeStrikeOut |
| FontUnderline | Property | Font.Underline, VB6.FontChangeUnderline |
| GotFocus | Event | Enter |
| Height | Property | Height |
| HelpContextID | Property | No mapping |
| hWnd | Property | Handle |
| Index | Property | Index property of ControlArray object |
| KeyDown | Event | KeyDown |
| KeyPress | Event | KeyPress |
| KeyUp | Event | KeyUp |
| Left | Property | Left |
| LostFocus | Event | Leave |
| MaskColor | Property | No mapping |
| MouseDown | Event | MouseDown |
| MouseIcon | Property | No mapping |
| MouseMove | Event | MouseMove |
| MousePointer | Property | Cursor |
| MouseUp | Event | MouseUp |
| Move | Method | SetBounds |
| Name | Property | Name |
| OLECompleteDrag | Event | No mapping |
| OLEDrag | Method | No mapping |
| OLEDragDrop | Event | No mapping |
| OLEDragOver | Event | No mapping |
| OLEDropMode | Property | No mapping |
| OLEGiveFeedback | Event | No mapping |
| OLESetData | Event | No mapping |
| OLEStartDrag | Event | No mapping |
| Parent | Property | FindForm |
| Picture | Property | Image |
| Refresh | Method | Refresh |
| RightToLeft | Property | RightToLeft |
| SetFocus | Method | Focus |
| ShowWhatsThis | Method | No mapping |
| Style | Property | No mapping |
| TabIndex | Property | TabIndex |
| TabStop | Property | TabStop |
| Tag | Property | Tag |
| ToolTipText | Property | SetToolTip method on ToolTip component |
| Top | Property | Top |
| UseMaskColor | Property | No mapping |
| Value | Property | No mapping for Get PerformClick method if value is nonzero for Set |
| Visible | Property | Visible |
| WhatsThisHelpID | Property | No mapping |
| Width | Property | Width |
| ZOrder | Method | VB6.ZOrder method, or BringToFront if Position parameter is 0, SendToBack if Position parameter is 1 |