Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi

 

I have a usercontrol that asks for a date, in the control I have a Leave event defined that checks to see if a valid date has been entered and if not then show a message and go back to the control.

 

I need to use this to enter a date and check to make sure it is in a date range, if not tell them it is invalid and ask the date again. I can do this by using the leave event in the new program.

 

My problem is the order that it executes the two leave events, at the moment it does the one in the program and then the one in the user control, what I need is for it to check if it is a vaild date (the user control leave event) and then check to see if it is within the date range (the programs leave event)

 

Can anyone tell me how to do this

 

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...