June 20th, 2006, 12:32 AM
#1
CEdit Numeric and also * and #
Hi I have a CEdit control.i want to allow only numeric values and * and # in that control and nothing else.
How can i do this.
Thanks
June 20th, 2006, 12:52 AM
#2
Re: CEdit Numeric and also * and #
Originally Posted by
kirantoday
Hi I have a CEdit control.i want to allow only numeric values and * and # in that control and nothing else.
How can i do this.
Thanks
Simple Perform subclassing on your edit Control and go ahead.
Thanx
June 20th, 2006, 12:58 AM
#3
Re: CEdit Numeric and also * and #
how do i deal with Paste option.
i.e. if text is copied from somewher and pasted in this edit box how can i restrict that.
thanks
June 20th, 2006, 01:16 AM
#4
Re: CEdit Numeric and also * and #
Originally Posted by
kirantoday
how do i deal with Paste option.
i.e. if text is copied from somewher and pasted in this edit box how can i restrict that.
thanks
u can handle WM_PASTE .
It takes seconds for rating…that actually compensates the minutes taken for giving answers
The biggest guru-mantra is: Never share your secrets with anybody. It will destroy you.
Regards, Be generous->Rate people
Jayender!!
June 20th, 2006, 08:06 AM
#5
Re: CEdit Numeric and also * and #
You may want to take a look at using 'regular expressions' for your vaildation needs. For more info, see MSDN for the CAltRegExp class .
Gort...Klaatu, Barada Nikto!
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width
Bookmarks