Click to See Complete Forum and Search --> : Masked Edit Control


May 18th, 1999, 01:34 PM
I'm in a bind using the Masked Edit Control from the msmask32.ocx. I was wondering if you can help me with any suggestions you have. I updated our application from VC++ 4.2 to VC++ 5.0 professional edition. I'm using the MaskEdBox object on a dialog with the following properties set. Mask(##/##/####), Format(dd-mm-yyyy), mousepointer(mskDefault), borderstyle(mskFixedSingle), clipmode(mskIncludeLiterals), OLEDragMode(mskOLEDragManual), OLEDropMode(mskOLEDropNone), MaxLength(10), PromptChar (_). The date I enter is 21/11/1998. In this dialog, we have a button that you click on to bring up another dialog window. I close the 2nd dialog window and the date I entered becomes 21/11/2111. The year becomes the combination of the dd & mm. I then close the 1st dialog window and then open it again and the date appears fine. I did not have this problem with the VC++ 4.2 version until upgrading to 5.0. Is the a problem in using the new version of msmask32.ocx? I would appreciate your feedback. Thanks...Terry

Erich Ruth
May 18th, 1999, 07:50 PM
I don't know if there is any difference between VC 4.0 and 5.0 versions that would cause this. I do know that I had to implement a masked edit control in vc 5.0 a few days ago and there are great classes on masked edit at the beginning of this site. I downloaded them and implemented masked edit within a 1\2 hour.

Robert Rolls
May 19th, 1999, 03:27 AM
DUNDAS are giving away there MskedEdit control MFC class for free.