![]() |
Validation of a control in CXTPControlEdit |
Post Reply
|
| Author | |
Surbhi
Groupie
Joined: 08 July 2008 Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
Topic: Validation of a control in CXTPControlEditPosted: 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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 September 2008 at 2:08am |
|
Try SetEditStyle(ES_NUMBER);
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Surbhi
Groupie
Joined: 08 July 2008 Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 September 2008 at 6:20am |
|
Sir,
Thanks for the Input...I tried doing it, but it didnt work
. Could u please suggest some other solution for it. Thanking u in anticipation.Thanks & Regards,
Surbhi Mehta.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 September 2008 at 2:57am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 October 2008 at 4:26am |
|
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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 October 2008 at 1:34am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 July 2009 at 3:45am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 July 2009 at 3:18am |
|
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 |