DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Event: EventLostFocus

Event: EventLostFocus

Triggers in user dialog boxes if a control looses the focus due to a mouse click or because <Tab> was pressed. You can use this event to respond to the current values or to the text of the control.

EventLostFocus(ByRef This)
ThisObject that triggers this event.

The following example keeps the focus on the textbox until you enter a number:

Sub EditBox1_EventLostFocus(ByRef This)
  If Not IsNumeric(This.Text) Then
    Call MsgBoxDisp("No value")
    This.Text =""
    This.SetFocus
  End If
End Sub
In This Section
Was this information helpful?