Solved

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

Posted on 2007-03-23
2
891 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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

13 Experts available now in Live!

Get 1:1 Help Now