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)

Syntax

[BrowsableAttribute(true)]
public event EventHandler RegionChanged
public:
[BrowsableAttribute(true)]
event EventHandler^ RegionChanged {
    void add(EventHandler^ value);
    void remove(EventHandler^ value);
}
[<BrowsableAttribute(true)>]
member RegionChanged : IEvent<EventHandler,
    EventArgs>
<BrowsableAttribute(True)>
Public Event RegionChanged As EventHandler

Remarks

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

Examples

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.
    ovalShape1.Invalidate();
}
Private Sub OvalShape1_RegionChanged() Handles OvalShape1.RegionChanged
    ' Force the shape to repaint.
    OvalShape1.Invalidate()
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