dizzy_boy Posted September 17, 2004 Posted September 17, 2004 Hello to all! I have a groupbox with textboxes used to enter data. In GroupBox Leave event I chech if all of the data was entered, if not the focus returns to the text bax that was left blank. How do I prevent this from happenin when a specific button outside this group box was clicked. I wan this event to happen every time Group Box was left except when I click Cancel (also includes leaving groupbox). How, how, how? Quote
Administrators PlausiblyDamp Posted September 17, 2004 Administrators Posted September 17, 2004 Rather than using the Leave event you could use the Validating event - then if you set the Cancel button's CausesValidation property to false things should work. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
dizzy_boy Posted September 17, 2004 Author Posted September 17, 2004 Thanks, I'll try that and let you know how I did. Quote
dizzy_boy Posted September 21, 2004 Author Posted September 21, 2004 It didn't work. It is the same as before. Quote
Leaders Iceplug Posted September 23, 2004 Leaders Posted September 23, 2004 Press Esc to click on Cancel. How did you set up the Leave event? Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.