Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2007-03-23
2
Medium Priority
?
913 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 2000 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

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.   …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

688 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