![]() |
Validation of a control in CXTPControlEdit |
Post Reply ![]() |
Author | |
Surbhi ![]() Groupie ![]() Joined: 08 July 2008 Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() Posted: 25 September 2008 at 12:20am |
Sir,
I want only numbers to be entered in a CXTPControlEdit control , thereby not allowing alphabets and special characters . There is some OnKeyDown event for that , but I am unable to implement it. Could you please enlist the steps for handling it. Thanking you in anticipation.
Thanks & Regards,
Surbhi Mehta
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Try SetEditStyle(ES_NUMBER);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Surbhi ![]() Groupie ![]() Joined: 08 July 2008 Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() |
Sir,
Thanks for the Input...I tried doing it, but it didnt work
![]() Thanks & Regards,
Surbhi Mehta.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Right. Forgot that RichEdit doesn't support ES_NUMBER :(
You can try Mask thing - Check our CustomThemes sample - check CControlComboBoxEditEx code and mask ComboBox.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Surbhi ![]() Groupie ![]() Joined: 08 July 2008 Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() |
Sir, Thanks for input. But I want to implement validation in Edit control whereas In that sample it is implemented on a Combo Box. Sir could you please enlist steps to implement it.
Thanks & Regards, Surbhi Mehta |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
its same. Just overide from CXTPControlEdit and not from CXTPControlComboBox.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
AMSH ![]() Groupie ![]() ![]() Joined: 27 June 2007 Location: Yemen Status: Offline Points: 20 |
![]() ![]() ![]() ![]() ![]() |
Plaese Help in ComboBox
I want to display two columns or more from DB in ComboBox ? e.g.: No Name Add ---- ------ ----- 01 Anwar Hamzah Haddah St. 02 John U.S.A St. ---------------------------------------------------------- Language: VB6 |
|
![]() |
|
AMSH ![]() Groupie ![]() ![]() Joined: 27 June 2007 Location: Yemen Status: Offline Points: 20 |
![]() ![]() ![]() ![]() ![]() |
I need urgent help
AMSH Plaese Help in ComboBox I want to display two columns or more from DB in ComboBox ? e.g.: No Name Add ---- ------ ----- 01 Anwar Hamzah Haddah St. 02 John U.S.A St. ---------------------------------------------------------- Language: VB6 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |