Home All Groups Group Topic Archive Search About

Problems with the Masked Edit Control

Author
29 Mar 2005 4:31 PM
Panos
Hi all,

I can't clear a Masked edit control. I use it to input dates, so I have
defined the mask as "##/##/####". I use the the well known
meb.mask=""
meb.text="" ,
but nothing happens.
Does anybody have a clue, why these lines don' t work? I use vb.net 2002

Thank u

Author
29 Mar 2005 7:19 PM
Herfried K. Wagner [MVP]
"Panos" <Pa***@discussions.microsoft.com> schrieb:
> I can't clear a Masked edit control. I use it to input dates, so I have
> defined the mask as "##/##/####". I use the the well known
> meb.mask=""
> meb.text="" ,
> but nothing happens.
> Does anybody have a clue, why these lines don' t work? I use vb.net 2002

Are you using VB6's Masked Edit control or another masked edit control?

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
30 Mar 2005 2:53 PM
Panos
I think it's VB6's control, because in the customize toolbox menu, I choose
it from the COM components tab.
Is there a .NET version of masked edit control that i don' t know about, or
should i make my own?


Show quoteHide quote
"Herfried K. Wagner [MVP]" wrote:

> "Panos" <Pa***@discussions.microsoft.com> schrieb:
> > I can't clear a Masked edit control. I use it to input dates, so I have
> > defined the mask as "##/##/####". I use the the well known
> > meb.mask=""
> > meb.text="" ,
> > but nothing happens.
> > Does anybody have a clue, why these lines don' t work? I use vb.net 2002
>
> Are you using VB6's Masked Edit control or another masked edit control?
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>
>
Author
30 Mar 2005 3:42 PM
Herfried K. Wagner [MVP]
"Panos" <Pa***@discussions.microsoft.com> schrieb:
> Is there a .NET version of masked edit control that i don' t know about,
> or
> should i make my own?

<URL:http://www.codeproject.com/cs/miscctrl/maskedcsedit.asp>
<URL:http://www.codeproject.com/vb/net/maskedbox_control.asp>
<URL:http://www.codeproject.com/vb/net/validtext3.asp>
<URL:http://www.codeproject.com/vb/net/cpflexmaskeditbox.asp>
<URL:http://www.codeproject.com/useritems/ValidText.asp>
....

..NET 2.0 will contain a masked edit control.

In some situation using an ErrorProvider to make the user aware of malformed
input can be more appropriate:

Validator Controls for Windows Forms
<URL:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet04082003.asp>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>