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
Printable View
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.Quote:
Originally Posted by kirantoday
Thanx
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.Quote:
Originally Posted by kirantoday
You may want to take a look at using 'regular expressions' for your vaildation needs. For more info, see MSDN for the CAltRegExp class .