RequestControlExit - .NET

<< Click to Display Table of Contents >>

Navigation:  Events Generated by the .NET Control >

RequestControlExit - .NET

Previous pageReturn to chapter overviewNext page

[Not supported by VpeWebControl, Interactive Edition and above]

The user wishes to remove the focus from the currently focused Control. In response to this event your application can evalute the value of the Control and decide, whether the current value is valid and the Control may lose the focus or not.

ControlExitEventHandler VPE.RequestControlExit(

object sender,

ControlExitEventArgs e

)

object sender

the VPE document object, which fired the event

ControlExitEventArgs e

event data, derived from EventArgs, two additional members:

public class ControlExitEventArgs : EventArgs

{

public TVPEObject VpeObject;

// the VPE object that fired the event

public bool CanExit;

 

}

 

bool CanExit

is a return-parameter, i.e. you can assign it one of the following values to control the resulting action of VPE:

Value

Description

True

yes, the control may loose the focus

False

no, the control may not loose the focus

 

See also:

Interactive Documents