| Visual Basic 6.0 | Visual Basic .NET Equivalent |
- Alignment
- 0 - Left Justify
1 - Right Justify
2 - Center
|
- TextAlign
- HorizontalAlignment.Left
HorizontalAlignment.Right
HorizontalAlignment.Center
|
| Appearance | No equivalent. For more information, see Appearance and BorderStyle Property Changes in Visual Basic .NET. |
- BackColor
|
- BackColor
- For a list of constants, see Color Changes in Visual Basic .NET.
|
- BorderStyle
- 0 – None
1 – Fixed Single
|
- BorderStyle
- BorderStyle.None
BorderStyle.FixedSingle
|
| CausesValidation | CausesValidation |
| Container | Parent |
| DataChanged | No equivalent. For more information, see Data Changes in Visual Basic .NET. |
| DataField | No equivalent. For more information, see Data Changes in Visual Basic .NET. |
| DataFormat | No equivalent. For more information, see Data Changes in Visual Basic .NET. |
| DataMember | No equivalent. For more information, see Data Changes in Visual Basic .NET. |
| DataSource | No equivalent. For more information, see Data Changes in Visual Basic .NET. |
| DragIcon | No equivalent. For more information, see Drag and Drop Changes in Visual Basic .NET. |
| DragMode | No equivalent. For more information, see Drag and Drop Changes in Visual Basic .NET. |
| Enabled | Enabled |
| Font | Font
|
| FontBold | Font
|
| FontItalic | Font
|
| FontName | Font
|
| FontSize | Font
|
| FontStrikethru | Font
|
| FontUnderline | Font
|
| ForeColor |
- ForeColor
- For a list of constants, see Color Changes in Visual Basic .NET.
|
| Height | Height, Size
|
| HelpContextID | No equivalent. For more information, see Help Support Changes in Visual Basic .NET. |
| HideSelection | HideSelection |
| HWnd | Handle |
| Index | No equivalent. For more information, see Control Array Changes in Visual Basic .NET. |
| Left | Left
|
| LinkItem | No equivalent. For more information, see Dynamic Data Exchange Changes in Visual Basic .NET. |
| LinkMode | No equivalent. For more information, see Dynamic Data Exchange Changes in Visual Basic .NET. |
| LinkTimeOut | No equivalent. For more information, see Dynamic Data Exchange Changes in Visual Basic .NET. |
| LinkTopic | No equivalent. For more information, see Dynamic Data Exchange Changes in Visual Basic .NET. |
| Locked | ReadOnly |
| MaxLength | MaxLength
Note In Visual Basic 6.0 it was not possible to programmatically set the Text property to a length greater than the MaxLength value; in Visual Basic .NET this is now possible.
|
| MouseIcon | No equivalent. For more information, see Cannot set a custom MousePointer. |
| MousePointer | Cursor
For a list of constants, see MousePointer Changes in Visual Basic .NET.
|
| MultiLine | MultiLine |
| Name | Name |
| OLEDragMode | No equivalent. For more information, see Drag and Drop Changes in Visual Basic .NET. |
| OLEDropMode | No equivalent. For more information, see Drag and Drop Changes in Visual Basic .NET. |
| Parent | FindForm method |
| PasswordChar | PasswordChar
Note In Visual Basic 6.0 the PasswordChar property was of type String; in Visual Basic .NET it is of type Char.
|
- RightToLeft
- True
False
|
- RightToLeft
- RightToLeft.Yes
RightToLeft.No
|
- ScrollBars
- 0 – None
1 – Horizontal
2 – Vertical
3 – Both
|
- ScrollBars
- ScrollBars.None
ScrollBars.Horizontal
ScrollBars.Vertical
ScrollBars.Both
|
| SelLength | SelectionLength |
| SelStart | SelectionStart |
| SelText | SelectedText |
| TabIndex | TabIndex |
| TabStop | TabStop |
| Tag | Tag |
| Text | Text |
| ToolTipText | ToolTip component
For more information, see ToolTip Changes in Visual Basic .NET.
|
| Top | Top
|
| Visible | Visible |
| WhatsThisHelpID | No equivalent. For more information, see Help Support Changes in Visual Basic .NET. |
| Width | Width, Size
|