ultraman Posted September 12, 2003 Posted September 12, 2003 Just a quick "yes / no" question : Is there really no way to put a mask to a TextBox like the old MaskedEditBox was doin' ? From what I've read everywhere on the forum, there's no way I can do it. Too bad, caus' it was a pretty cool thing for phone number formats, credit card number, etc... Quote Now go on, boy, and pay attention. Because if you do, someday, you may achieve something that we Simpsons have dreamed about for generations: You may outsmart someone! --Homer Simpson
AlexCode Posted September 14, 2003 Posted September 14, 2003 There isn't no built in MaskEdit control but some cool guys already made it ! :) Try this URL: http://www.codeproject.com/vb/net/cpflexmaskeditbox.asp?target=maskedit Enjoy ! Quote Software bugs are impossible to detect by anybody except the end user.
pendragon Posted September 16, 2003 Posted September 16, 2003 It is still there and can be added to the tool box, but it is a com component and not a .NET framework component. Quote
Moderators Robby Posted September 16, 2003 Moderators Posted September 16, 2003 You can use a RegEx on the lose focus event. Quote Visit...Bassic Software
AlexCode Posted September 17, 2003 Posted September 17, 2003 It's COM ?? The code he shows up it's not COM... are you shure ? Why do you say that is COM ? Quote Software bugs are impossible to detect by anybody except the end user.
*Experts* mutant Posted September 17, 2003 *Experts* Posted September 17, 2003 It's COM ?? The code he shows up it's not COM... are you shure ? Why do you say that is COM ? The Framework doesnt ship with a .NET native MeskEdit. Quote
Moderators Robby Posted September 17, 2003 Moderators Posted September 17, 2003 Alex, what pendragon said is that the masked component available in the VS.NET is a COM object and not .NET. Quote Visit...Bassic Software
ultraman Posted September 17, 2003 Author Posted September 17, 2003 That's more than I asked for ! The RegEx is just perfect for what I have to do. It's the first time I hear about this object, but is seems perfect for my needs. Quote Now go on, boy, and pay attention. Because if you do, someday, you may achieve something that we Simpsons have dreamed about for generations: You may outsmart someone! --Homer Simpson
ultraman Posted September 17, 2003 Author Posted September 17, 2003 Just a final word about the RegEx (thanks again Robby). If you're like me and you have some problems with the syntax, here's a little free learning utility http://www.devhood.com/tools/tool_details.aspx?tool_id=717 That's just great Quote Now go on, boy, and pay attention. Because if you do, someday, you may achieve something that we Simpsons have dreamed about for generations: You may outsmart someone! --Homer Simpson
doraemon Posted October 3, 2003 Posted October 3, 2003 I tried downloading the mask edit box, built as DLL and added to my toolbar. But I did not get it to work the way I needed. When I press the ".", the cursor does not advance to the position right after the "." Does anyone have any clue why it is not working? I used in the VB .Net 2003. Could it be the version? If this one does not work, does anyone have any suggestion whether there is something like this out there? It would be quite ridiculous to have the users to use the arrow key to scroll to the right place to key in the number. I am really curious why Microsoft does not have such basic control in VB. There is such control in Visual Foxpro and Access (basically just the standard textboxes but have the input mask and format porperties). It's kind of frustrated having to program them to work the way they should have been in the first place. Quote
Moderators Robby Posted October 3, 2003 Moderators Posted October 3, 2003 Good find ultraman. doraemon, did you read the rest of this thread? Quote Visit...Bassic Software
doraemon Posted October 3, 2003 Posted October 3, 2003 Good find ultraman. doraemon, did you read the rest of this thread? Yes, I read the rest of the thread. But I was specifically referring to the flex mask edit box suggested by Alexcode (http://www.codeproject.com/vb/net/c...target=maskedit). It claimed that it should work the way I wanted it, but it didn't. i.e. when I press the ".", the cursor did not move to the right of the "." Quote
AlexCode Posted October 3, 2003 Posted October 3, 2003 I didn't follow this thread as I should... Mutant...: Is it necessary that a component to be managed have to be shiped with the framework?? Couldn't it be made from scrach or even inherited from the textbox?? Think about it... Anyways... All your problems are solved because my good friend Bill Gates made some contacts with the people from ComponentOne and others and we can now have the ComponentOne TextEdit box (and all the professional suite) for free to download from http://www.msdn.microsoft.com Just an advise... Don't trust too much on the ComponentOne components... :D belive me... I know! But the textEDit work with no probs... Quote Software bugs are impossible to detect by anybody except the end user.
*Experts* mutant Posted October 3, 2003 *Experts* Posted October 3, 2003 Mutant...: Is it necessary that a component to be managed have to be shiped with the framework?? Couldn't it be made from scrach or even inherited from the textbox?? Think about it... I said native .NET control. I was just saying that the Framework doesnt have a MeskedEditBox built into it, you would have to create one yourself or fnid one. I thought about it :) If I misunderstood your question then just ask again. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.