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
'Declaração
<BrowsableAttribute(True)> _
Public Event RegionChanged As EventHandler
[BrowsableAttribute(true)]
public event EventHandler RegionChanged
[BrowsableAttribute(true)]
public:
event EventHandler^ RegionChanged {
void add (EventHandler^ value);
void remove (EventHandler^ value);
}
[<BrowsableAttribute(true)>]
member RegionChanged : IEvent<EventHandler,
EventArgs>
JScript does not support events.
Remarks
For more information about how to handle events, see Consuming 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 Sub OvalShape1_RegionChanged() Handles OvalShape1.RegionChanged
' Force the shape to repaint.
OvalShape1.Invalidate()
End Sub
private void ovalShape1_RegionChanged(object sender, System.EventArgs e)
{
// Force the shape to repaint.
ovalShape1.Invalidate();
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualBasic.PowerPacks Namespace
Other Resources
How to: Draw Lines with the LineShape Control (Visual Studio)
How to: Draw Shapes with the OvalShape and RectangleShape Controls (Visual Studio)