Yes masked is okey.
"I found that "*KeyPress*" event should be used...." on reading you will
notice that he is trying to bind the event. so i just given the link.

@vikas
just go to the event list and add one for KeyPress.
Changing the name of the method will not change the actual event purpose.(It
is okey in those VB days)
You need to study a little bit more on the event model.
Hope you solved it by now.

On Thu, Apr 9, 2009 at 3:33 AM, Mike Fry <[email protected]> wrote:

>
> santhosh vs wrote:
>
>> http://msdn.microsoft.com/en-us/library/ms229644(VS.80).aspx<http://msdn.microsoft.com/en-us/library/ms229644%28VS.80%29.aspx>
>>
>>
> No! That's extra coding!
>
>
>
>>
>>    VIKAS GARG wrote:
>>
>>        Hi friends I am developing an application in which there is a
>>        text box, in this text box I need to have telephone number as an
>>        input. So for this I need to put a constarint on this text box
>>        so that it will only accept integers and not other and also
>>        there shold be the c ondition so that no more than 10 digits
>>        could be given....
>>
>>
>>    Have a look at the MaskedTextBox rather than the plain TextBox.
>>    It'll do much of what you want it to do without extra coding.
>>
>
>
> --
> Regards,
> Mike Fry
> Johannesburg.
>



-- 
My Web Site
http://everlovingyouth.googlepages.com
My Technical Blog
http://acutedeveloper.blogspot.com
Skype :santhoshnta
Orkut :everlovingyouth

Reply via email to