By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,238 Members | 1,532 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,238 IT Pros & Developers. It's quick & easy.

What happened to the MaskEdit control?

P: n/a
I've been programming in VB.Net for quite a while now, and just realized
that it seems to be mssing the MaskEdit control!

I never much cared for it in VB6, but I have a customer who insists on the
function (where the text box contains " / / " and they fill in the
date.

It seems that you can use the MaskEdit COM control by adding a reference to
it, but I want to sublcass it to mimic some of the behavior of a text box,
so I can use it with my existing objects.

However, when I tried creating a control that inherits from the
MaskEditClass (seemingly the only thing in the MaskEdit namespace that can
be inherited), VB.Net does not seem to recognize it as a control (can't view
it in the designer, and can't add it to the Toolbox).

How do you get the functionality of the MaskEdit in .Net control?

Thanks!
---Selden McCabe
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi,

http://www.thecodeproject.com/vb/net/validtext3.asp

Ken
-----------------
"Selden McCabe" <se*****@msn.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
I've been programming in VB.Net for quite a while now, and just realized
that it seems to be mssing the MaskEdit control!

I never much cared for it in VB6, but I have a customer who insists on the
function (where the text box contains " / / " and they fill in the
date.

It seems that you can use the MaskEdit COM control by adding a reference
to
it, but I want to sublcass it to mimic some of the behavior of a text box,
so I can use it with my existing objects.

However, when I tried creating a control that inherits from the
MaskEditClass (seemingly the only thing in the MaskEdit namespace that can
be inherited), VB.Net does not seem to recognize it as a control (can't
view
it in the designer, and can't add it to the Toolbox).

How do you get the functionality of the MaskEdit in .Net control?

Thanks!
---Selden McCabe

Nov 20 '05 #2

P: n/a
* "Selden McCabe" <se*****@msn.com> scripsit:
How do you get the functionality of the MaskEdit in .Net control?


<http://www.codeproject.com/vb/net/cpflexmaskeditbox.asp>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

P: n/a
Thanks for the feedback. The FlexMaskEditBox control looks like a very nice
piece of work.

One thing it seems to lack (unless I missed it) was the ability that the
MaskEdit control has where you put "__/__/____" in the mask, and the user
sees " / / " in the control as a visual cue that they are to enter a
date. And when they type the numbers, after two digits are entered, it
moves to the month, etc.

Does the FlexMaskEditBox control have this capability?

I'm starting to think I'll have to create a user control with three text
boxes and a whole bunch of code to duplicate this function!

Any suggestions, ideas, etc. would be really welcome!

Thanks,
---Selden
Nov 20 '05 #4

P: n/a
* "Selden McCabe" <se*****@msn.com> scripsit:
One thing it seems to lack (unless I missed it) was the ability that the
MaskEdit control has where you put "__/__/____" in the mask, and the user
sees " / / " in the control as a visual cue that they are to enter a
date. And when they type the numbers, after two digits are entered, it
moves to the month, etc.

Does the FlexMaskEditBox control have this capability?


Sorry, I never worked with this control. If you find it out, it would
be great if you share your experiences with this control with the group.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.