Dear Team,
I want to retain focus in a text input box when the given value by the user is beyond specified limits
for example: if I set the min and max properties to 1 and 10 respectively, if the end user types any value that is either less than 0 or more than ten, then cursor or focus should not leave that particular control (say text box)
I have used BorderColorChange to Red on the given control's condition failure, but not able to retain focus in that particular control.
the following is the code that I used on OnChange Event Handler for text box, but this setfocus is not working and I am able to ove out of control.
If(Value(txtOverAll.Text) > varReqEnt-varUpdEntries, Notify("OVER-ALL Value cannot be greater than " & varReqEnt-varUpdEntries, NotificationType.Error), varReqEnt-varUpdEntries);
SetFocus(txtOverAll);
for example in VB, we have onExit Event, where, on a particular condition failure, the focus is retained with SetFocus method., looking for similar functionality.
can anyone please help.
with regards
Repath Athyala.