Click here to Skip to main content
15,911,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: prohbit shift key in edit box............ Pin
Naveen8-Oct-08 19:34
Naveen8-Oct-08 19:34 
GeneralRe: prohbit shift key in edit box............ Pin
ani_ikram8-Oct-08 19:36
ani_ikram8-Oct-08 19:36 
GeneralRe: prohbit shift key in edit box............ Pin
Naveen8-Oct-08 19:45
Naveen8-Oct-08 19:45 
GeneralRe: prohbit shift key in edit box............ Pin
ani_ikram8-Oct-08 20:02
ani_ikram8-Oct-08 20:02 
GeneralRe: prohbit shift key in edit box............ Pin
Naveen8-Oct-08 20:06
Naveen8-Oct-08 20:06 
GeneralRe: prohbit shift key in edit box............ Pin
ani_ikram8-Oct-08 20:08
ani_ikram8-Oct-08 20:08 
GeneralRe: prohbit shift key in edit box............ Pin
Naveen8-Oct-08 20:09
Naveen8-Oct-08 20:09 
GeneralRe: prohbit shift key in edit box............ Pin
Cedric Moonen8-Oct-08 20:13
Cedric Moonen8-Oct-08 20:13 
BTW, if you only wanted to have an edit control into which you can enter a float value, there are hundreds of article about that subject, you only have to search for it on codeproject. Here[^] is an example.
The problem with your approach is that it is not secure: nothing prevents the user to enter a dot several time. So, instead of reinventing the wheel and rewriting the validation code all over again(it's not that trivial because, you have also to take into account that the user might delete some characters, change the cursor location, ...) why don't you look for a control that does this already ?

Cédric Moonen
Software developer

Charting control [v1.5]
OpenGL game tutorial in C++

GeneralRe: prohbit shift key in edit box............ Pin
SandipG 8-Oct-08 19:38
SandipG 8-Oct-08 19:38 
GeneralRe: prohbit shift key in edit box............ Pin
Le@rner8-Oct-08 20:10
Le@rner8-Oct-08 20:10 
GeneralRe: prohbit shift key in edit box............ Pin
Le@rner8-Oct-08 20:16
Le@rner8-Oct-08 20:16 
QuestionRe: prohbit shift key in edit box............ Pin
David Crow9-Oct-08 3:05
David Crow9-Oct-08 3:05 
QuestionHow can autosize last coloumn of ListCtrl ? Pin
Le@rner8-Oct-08 19:02
Le@rner8-Oct-08 19:02 
AnswerRe: How can autosize last coloumn of ListCtrl ? Pin
David Crow9-Oct-08 3:06
David Crow9-Oct-08 3:06 
GeneralRe: How can autosize last coloumn of ListCtrl ? Pin
Le@rner12-Oct-08 18:31
Le@rner12-Oct-08 18:31 
GeneralRe: How can autosize last coloumn of ListCtrl ? Pin
David Crow13-Oct-08 2:55
David Crow13-Oct-08 2:55 
QuestionPrintPreview of a CImage Pin
Priya_Sundar8-Oct-08 18:23
Priya_Sundar8-Oct-08 18:23 
QuestionA button accepts files Pin
akira328-Oct-08 18:08
akira328-Oct-08 18:08 
AnswerRe: A button accepts files Pin
Naveen8-Oct-08 18:59
Naveen8-Oct-08 18:59 
Question_set_new_handler Pin
dharani8-Oct-08 17:56
dharani8-Oct-08 17:56 
AnswerRe: _set_new_handler Pin
Jijo.Raj8-Oct-08 18:17
Jijo.Raj8-Oct-08 18:17 
QuestionHelp With A Program. I Dont Know Where To Begin. PLZ HELP ME Pin
LilKoopa8-Oct-08 9:26
LilKoopa8-Oct-08 9:26 
AnswerRe: Help With A Program. I Dont Know Where To Begin. PLZ HELP ME Pin
CPallini8-Oct-08 9:32
mveCPallini8-Oct-08 9:32 
GeneralRe: Help With A Program. I Dont Know Where To Begin. PLZ HELP ME Pin
Perspx8-Oct-08 9:44
Perspx8-Oct-08 9:44 
AnswerRe: Help With A Program. I Dont Know Where To Begin. PLZ HELP ME Pin
David Crow8-Oct-08 10:01
David Crow8-Oct-08 10:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.