NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

UserControl Paint Event

[To be supplied.]

The following declaration shows the syntax for a method that handles the Paint event.

[Visual Basic]
Private Sub UserControlName_Paint( _
   ByVal sender As Object, _
   ByVal e As PaintEventArgs _
)
[C#]
private void UserControlName_Paint(
   object sender,
   PaintEventArgs e
);
[C++]
private: void UserControlName_Paint(
   Object* sender,
   PaintEventArgs* e
);
[JScript]
private UserControlName_Paint(
   sender : Object,
   e : PaintEventArgs
);

Parameters

sender
The source of the event.
e
A PaintEventArgs that contains the event data. The following PaintEventArgs properties provide information specific to this event.
Property Description
ClipRectangle
Gets the rectangle in which to paint.
Graphics
Gets the Graphics object used to paint.

See Also

UserControl Class | UserControl MembersTopic | System.WinForms Namespace