Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21237

How to make sure all validate event fired

$
0
0
I have 10 textbox and 7 command button in textbox..
the first to get focus is textbox no.2, there is a validate event in textbox 5 to 9..
and there is a command button name cmdAdd that have CausesValidation = True..
The problem is, if i just open the form and click cmdAdd, the validate event in textboxes doesn't fire, the event only fire if the textbox get focus first..
My question is, is there anyway to fire all the validate event when the focus get to the control that have CauseValidation true without the control that have validate event get focus first?

Thanks in advance..

Viewing all articles
Browse latest Browse all 21237

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>