Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 29th, 2003, 09:04 AM
Authorized User
Join Date: Aug 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Editbox with Date format


I have an editbox on a dialog in a SDI project that is a date field. Is there a way to create an input mask for the editbox so that only the mm/dd/yyyy format may be entered? Or will I just have to let them enter the date and check against the member variable for the editbox to see what they entered?

Old August 30th, 2003, 02:36 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma

For edit boxes in Visual C++ I have had to
PROGRAM for any kind of formating I have
ever wanted to enforce on them. There is no real
choice I think in this regard.And I used to do
all this coding in EN_CHANGE handler.

But I tell you what, I'm very impressed by the
way the web sites these days collect this kind of
data from the user and I have long been giving
three comboboxes (for day, month and year
respectively) instead of an edit box
on my forms for collecting date data.

Similar Threads
Thread Thread Starter Forum Replies Last Post
date format differs, need to force format somehow patricolsson ASP.NET 2.0 Basics 1 December 3rd, 2009 12:53 AM
Convert British format date to American format? fyr PHP How-To 0 December 19th, 2007 03:17 PM
converting double to text in editbox rupali_mb Visual C++ 1 February 11th, 2007 12:14 PM
How to give Date format while entering date Subuana Beginning VB 6 4 March 17th, 2006 07:25 AM
date format differs, need to force format somehow patricolsson HTML Code Clinic 2 January 12th, 2006 05:55 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.