Shape.RegionChanged Event


Occurs when the value of the Region property changes.

Namespace:   Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)


public event EventHandler RegionChanged
event EventHandler^ RegionChanged {
    void add(EventHandler^ value);
    void remove(EventHandler^ value);
member RegionChanged : IEvent<EventHandler,
Public Event RegionChanged As EventHandler


For more information about how to handle events, see Handling and Raising Events.


The following example shows how to respond to the RegionChanged event in an event handler. This example requires that you have an OvalShape control named OvalShape1 on a form.

private void ovalShape1_RegionChanged(object sender, System.EventArgs e)
    // Force the shape to repaint.
Private Sub OvalShape1_RegionChanged() Handles OvalShape1.RegionChanged
    ' Force the shape to repaint.
End Sub

See Also

Shape Class
Microsoft.VisualBasic.PowerPacks Namespace
How to: Draw Lines with the LineShape Control (Visual Studio)
How to: Draw Shapes with the OvalShape and RectangleShape Controls (Visual Studio)
Introduction to the Line and Shape Controls (Visual Studio)

Return to top