Solved

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

Posted on 2007-03-23
2
904 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

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

Suggested Solutions

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

710 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