Re: Using input mask for text box in vb6

From: Rick Rothstein (rickNOSPAMnews_at_NOSPAMcomcast.net)
Date: 06/07/04


Date: Sun, 6 Jun 2004 20:21:24 -0400

Although, personally, I hate the control, you can use a Microsoft Masked
Edit Control (Project/Components from VB's menu) for the phone numbers
and SS#, but I'd use a DatePicker control (Project/Components from VB's
menu and select "Microsoft Windows Common Controls-2" from the list; the
DatePicker, called DTPicker, is in that collection of controls) for the
date entry. This control presents a full month view for your user to
select from... no chance of any confusion that way and you can format
the value selected by the user anyway you want to.

Rick - MVP

"Allen" <anonymous@discussions.microsoft.com> wrote in message
news:115C1F84-5FBE-464E-92BD-10C2804ACDDB@microsoft.com...
> Is there any way to put or use input mask for text boxes in vb6. I
need to make sure that dates, phone numbers, and ss# are inputed right
into the database.



Relevant Pages

  • Re: Date time picker
    ... > Where do I find the date time picker control? ... Click Project/Components in VB's menubar and select Microsoft Windows ... Common Controls-2 from the list... ... the DatePicker control is in the ...
    (microsoft.public.vb.controls)
  • Re: action bar
    ... > i'd like insert in a form a bar in the bottom to explain the action to ... you want the StatusBar control. ... Project/Components in VB's menu and select ...
    (microsoft.public.vb.general.discussion)
  • Re: "edit" control is read only?
    ... standard code required to get an edit control to work... ... PSTR szCmdLine, int iCmdShow) ... //-MAIN WINDOW CONFIGURATION ...
    (microsoft.public.vc.language)
  • Re: Overriding CComboBox functionality...
    ... Edit/Static Control as the CComboBox does. ... When I sub-class the edit control, I create the static control, and fitted ... I have been having trouble with the OnPainthandler. ... > the size in the CBS_SIMPLE case, but the dropdown styles weren't too vexing. ...
    (microsoft.public.vc.mfc)
  • Re: How to transparent editbox control works correctly...
    ... can't simply attach a CString to your edit control and hope that UpdateData ... void SetFont; ... afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); ...
    (microsoft.public.vc.mfc)