Paint event (Main Control)

Visual Basic example
Visual C++ 4.0 example

Visual J++ example

Syntax void Paint ();

Overview:  Refer to Detecting Events.

Remarks

Occurs when part or all of the Main Control is exposed after it has been moved or enlarged, or after a window that was covering the control has been moved.

If the AutoRepaint property is set to TRUE, you do not have to write code for this event.

See Also

Elements:  Scroll event

Topics:  Working with the Control: Client Area Usage