Solved

Is there an input mask on Visual C++ edit control?

Posted on 2007-03-23
2
893 Views
Last Modified: 2013-11-26
Hi all, coding Visual C++ in VS.NET 2003

I'm wondering if there is something similar to VB's input mask for the Edit Control.
The user will be entered the time: HH:MM and it would be nice to mask the input to avoid validating.
0
Comment
Question by:alexatsearidge
  • 2
2 Comments
 
LVL 11

Accepted Solution

by:
DeanHorak earned 500 total points
ID: 18782095
Not directly, but you should be able to use that same control (MSMASK32.OCX) in C++ since it's an activeX control.....

If you're using MFC, just right-click on the frame that you want to place the edit control and select "Insert ActiveX control. Then select the "Microsoft Masked Edit Control" from the list.
0
 
LVL 11

Expert Comment

by:DeanHorak
ID: 18782222
If you're using .Net (i.e.windows forms) you can do this as well by adding the masked edit control to your toolbox. Just right click on the toolbox and select add/remove items... Then chose the "COM" table and scroll down and check the checkbox beside the "Microsoft Masked Edit Control" from the list. You can then use the control like any other component in your toolbox...
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now