

| General Properties Methods Events Example |
Note: All of the methods below are standard control methods that are used in just about every ActiveX control. See the Visual Basic documentation for more details on these methods.
Drag (action)
Begins, ends, or cancels the Drag operation. Valid settings are vbCancel (0), vbBeginDrag (1), or vbEndDrag (2).
Usage Example: ImageMap1.Drag vbBeginDrag
Move (left, top, width, height)
Moves and/or resizes the ImageMap control. Only the left argument is required. However, to specify any other arguments, you must specify all arguments that appear in the syntax before the argument you want to specify. For example, you can't specify width without specifying left and top. Any trailing arguments that are unspecified remain unchanged.
Usage Examples:
ImageMap1.Move 60, 60, 4550, 3975
ImageMap1.Move 150
Moves the focus to the ImageMap control.
Usage Example: ImageMap1.SetFocus
Displays a dialog with information about the VB Image Map control. Includes version number, support email, website, and order info.
Usage Example: ImageMap1.ShowAboutBox
Displays a selected topic from a help file in a tool-tip-like popup. This method will display the topic identified by the WhatsThisHelpID property.
Usage Example: ImageMap1.ShowWhatsThis
ZOrder (position)
Places the ImageMap control at the front or back of the z-order within its graphical level. The optional argument position is an integer indicating the position of object relative to other instances of the same object. If position is 0 or omitted, the ImageMap control is positioned at the front of the z-order. If position is 1, it is positioned at the back of the z-order.
Usage Example: ImageMap1.ZOrder 0