|
-
Nov 22nd, 2000, 03:37 PM
#1
Thread Starter
Junior Member
Hey all,
I was wondering if anyone could help me with the following problem I'm having:
I have an MDI Form with New, Open and Save buttons, and a child form within it that contains a bunch of textboxes. A textbox class was created in order to facilitate the validation of all the textboxes, which is basically making sure that they are numeric and between specific ranges. While switching from textbox to textbox within the child form, the validation works great. The problem is, when the save button is clicked on the MDI (parent) form, the validate event does not get triggered (because an MDI Form does not have a "CausesValidation" property) and any invalid data that exists within the textbox gets saved to the database. Remember that because of the textbox class, I can not simply call the validate event of each textbox from the MDI Form.
Does anyone have any insight into how I might go about overcoming this problem? Any and all help would be appreciated. Thanks in advance.
JMik
Http://Mikscorner.HomeIP.net
"If tugboats were bigger, they would be the boats that other boats tug" -Ajax
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|