Export (0) Print
Expand All
Expand Minimize

ProgressBar Control for Visual Basic 6.0 Users 

The ProgressBar control in Visual Basic 6.0 is replaced by the Windows Forms ProgressBar control in Visual Basic 2005. The names of some properties, methods, events, and constants are different, and in some cases there are differences in behavior.

Conceptual Differences

Negotiate Property

In Visual Basic 6.0, the Negotiate property of a ProgressBar control can be used to automatically hide the control when a toolbar is displayed.

The Visual Basic 2005 ProgressBar control does not have a Negotiate property; you can achieve the same effect by setting the Visible property to false at run time.

Orientation Property

In Visual Basic 6.0, a ProgressBar control can be displayed either horizontally or vertically by setting the Orientation property. The Visual Basic 2005 ProgressBar control can only be displayed horizontally.

ProgressBar Control Property, Method, and Event Equivalencies

The following tables list Visual Basic 6.0 properties, methods, and events, along with their Visual Basic 2005 equivalents. Properties, methods, and events with the same names and behaviors are not listed. Where applicable, constants are indented beneath the property or method. All Visual Basic 2005 enumerations map to the System.Windows.Forms namespace unless otherwise noted.

Links are provided, as necessary, to topics explaining differences in behavior. Where there is no direct equivalent in Visual Basic 2005, links are provided to topics that present alternatives.

Properties

Visual Basic 6.0 Visual Basic 2005 Equivalent

Align

Dock

Appearance

BorderStyle

New implementation. For more information, see Appearance and BorderStyle Properties for Visual Basic 6.0 Users.

Container

Parent

DragIcon

DragMode

New implementation. For more information, see Drag and Drop for Visual Basic 6.0 Users.

Height

Height

NoteNote

Coordinates are handled differently in Visual Basic 2005. For more information, see Coordinate System for Visual Basic 6.0 Users.

HWnd

Handle

Index

New implementation. For more information, see Control Arrays for Visual Basic 6.0 Users.

Left

Left

Note   Coordinates are handled differently in Visual Basic 2005. For more information, see Coordinate System for Visual Basic 6.0 Users.

Max

Maximum

Min

Minimum

MouseIcon

New implementation. For more information, see Cannot set a custom MousePointer.

MousePointer

Cursor

For a list of constants, see MousePointer for Visual Basic 6.0 Users.

Negotiate

New implementation.

OLEDropMode

New implementation. For more information, see Drag and Drop for Visual Basic 6.0 Users.

Orientation

New implementation.

Parent

FindForm

Scrolling

Style

ToolTipText

ToolTip component.

For more information, see ToolTip Support for Visual Basic 6.0 Users.

Top

Top

Note   Coordinates are handled differently in Visual Basic 2005. For more information, see Coordinate System for Visual Basic 6.0 Users.

Value

Value

NoteNote

In Visual Basic 6.0, when the Value is changed, the Change event is raised. In Visual Basic 2005, the Change event is not raised; use the ValueChanged event instead.

WhatsThisHelpID

New implementation. For more information, see Help Support for Visual Basic 6.0 Users.

Width

Width, Size

Note   Coordinates are handled differently in Visual Basic 2005. For more information, see Coordinate System for Visual Basic 6.0 Users.

Methods

Visual Basic 6.0 Visual Basic 2005 Equivalent

Drag

New implementation. For more information, see Drag and Drop for Visual Basic 6.0 Users.

Move

SetBounds

NoteNote

Coordinates are handled differently in Visual Basic 2005. For more information, see Coordinate System for Visual Basic 6.0 Users.

OLEDrag

New implementation. For more information, see Drag and Drop for Visual Basic 6.0 Users.

ShowWhatsThis

New implementation. For more information, see Help Support for Visual Basic 6.0 Users.

ZOrder:

  0vbBringToFront

  1vbSendToBack

BringToFront or SendToBack function

 BringToFront

 SendToBack

Events

Visual Basic 6.0 Visual Basic 2005 Equivalent

DragDrop

DragOver

New implementation. For more information, see Drag and Drop for Visual Basic 6.0 Users.

OLECompleteDrag

OLEDragDrop

OLEDragOver

OLEGiveFeedback

OLESetData

OLEStartDrag

New implementation. For more information, see Drag and Drop for Visual Basic 6.0 Users.

Upgrade Notes

When a Visual Basic 6.0 project is upgraded to Visual Basic 2005, any ProgressBar controls are upgraded to Windows Forms ProgressBar controls. Where properties, methods, and events have no equivalent or have differences in behavior, upgrade notes or warnings are added to your code.

See Also

Community Additions

ADD
Show:
© 2015 Microsoft