Solved

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

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…

820 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