Mask control C#

Hi all,

I am just wondering if we have any mask control in C# that can be used to get phone numbers as input.

Or Do we have to actually implement it???

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

there isn't any. maybe in framework 2.0 but I don't have it and never worked with it.

here are some links that you might use ;)


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
You can use the COM-Based ActiveX control "Microsoft Masked Edit Control".... just add a COM Reference (and add to the toolbar), then just drag it to a control surface.

Yes, the .Net Framework v2.0 *does* have a native control for this...
well ... one way to go is to declare the combo parameter as a simple object.

the using reflection, you call the methods of the combobox which you know exist since you pass a combobox :)

just an ugly workaropund. you should probalby create a class wrapper that does this so you can re-use the code. I would have done it for you but I need to run in about 15 min and I don't think I can make it in that time. sorry.

anyway, if noone comes up with  anicer solution or with the wrapper implementation, I will do it tomorrow.

cheers and Happy new year.
sorry for the prvious message. it aws supposed to be for another question. somehow I got them mixed.

I hope a page editor is reading this and will delete the prvious and this message. thank you
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.