Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - Validation of a control in CXTPControlEdit
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Validation of a control in CXTPControlEdit

 Post Reply Post Reply
Author
Message
Surbhi View Drop Down
Groupie
Groupie


Joined: 08 July 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Surbhi Quote  Post ReplyReply Direct Link To This Post Topic: Validation of a control in CXTPControlEdit
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 25 September 2008 at 2:08am
Try SetEditStyle(ES_NUMBER);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Surbhi View Drop Down
Groupie
Groupie


Joined: 08 July 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Surbhi Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Surbhi View Drop Down
Groupie
Groupie


Joined: 08 July 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Surbhi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 09 October 2008 at 1:34am
Hi,
its same. Just overide from CXTPControlEdit and not from CXTPControlComboBox.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
AMSH View Drop Down
Groupie
Groupie
Avatar

Joined: 27 June 2007
Location: Yemen
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote AMSH Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
AMSH View Drop Down
Groupie
Groupie
Avatar

Joined: 27 June 2007
Location: Yemen
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote AMSH Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.