Print Page | Close Window

Validation of a control in CXTPControlEdit

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=12251
Printed Date: 21 November 2024 at 3:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Validation of a control in CXTPControlEdit
Posted By: Surbhi
Subject: Validation of a control in CXTPControlEdit
Date 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



Replies:
Posted By: Oleg
Date Posted: 25 September 2008 at 2:08am
Try SetEditStyle(ES_NUMBER);

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Surbhi
Date 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.


Posted By: Oleg
Date 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


Posted By: Surbhi
Date 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


Posted By: Oleg
Date Posted: 09 October 2008 at 1:34am
Hi,
its same. Just overide from CXTPControlEdit and not from CXTPControlComboBox.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: AMSH
Date 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


Posted By: AMSH
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net