wdw Posted January 27, 2003 Posted January 27, 2003 Hello, I've got a masked edit box with this mask "##-##-####" it's a date field. Now i want to fill it from the database but i don't know how. I am able to get the date from the database but i cannot bind the date to the masked editbox. Can someone give me a solution for my problem. thanks Quote
*Experts* Nerseus Posted January 27, 2003 *Experts* Posted January 27, 2003 You'll have to use the textbox's Parse and Format events to convert the date into your mask's format. Look in the help for either of these events - they have sample on converting Currency to String and back (I think). Also, you may want to avoid the maskedit box as it's not a real .NET control. Check out divil's tutorial on how to use regular expressions to validate a control's text. -nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
wdw Posted January 27, 2003 Author Posted January 27, 2003 thanks for your reply, I solved my problem by using te datetimepicker. I was trying to avoid it but it was just the best solution. Quote
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.