M
markyd
Hi,
I've got a 4 textboxes (either standard cf of Opennetcf) on a form with
a button to clear all textboxes.
I need to validate the textbox entries on each entry (eg. customer code
exists in the database)
I can validate the entry no problem either by using the validating
event or the 'lost focus' event, but whenever I use the button to clear
all textboxes the validation always occurs and remains in the textbox
with focus if its invalid entry. I tried using a public variable to
ignore the validation if the button was pressed, but the textbox event
is alway run first before any button event like
mousedown,mousemove,click or gotfocus.
I'm trying to achive the causesvalidation property!!!
How can I achive this?
I've got a 4 textboxes (either standard cf of Opennetcf) on a form with
a button to clear all textboxes.
I need to validate the textbox entries on each entry (eg. customer code
exists in the database)
I can validate the entry no problem either by using the validating
event or the 'lost focus' event, but whenever I use the button to clear
all textboxes the validation always occurs and remains in the textbox
with focus if its invalid entry. I tried using a public variable to
ignore the validation if the button was pressed, but the textbox event
is alway run first before any button event like
mousedown,mousemove,click or gotfocus.
I'm trying to achive the causesvalidation property!!!
How can I achive this?