Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: conditions problem Pin
Christian Graus4-Aug-05 18:14
protectorChristian Graus4-Aug-05 18:14 
GeneralRe: conditions problem Pin
nidhelp4-Aug-05 18:32
nidhelp4-Aug-05 18:32 
GeneralRe: conditions problem Pin
Christian Graus4-Aug-05 18:56
protectorChristian Graus4-Aug-05 18:56 
GeneralRe: conditions problem Pin
Luis Alonso Ramos4-Aug-05 19:12
Luis Alonso Ramos4-Aug-05 19:12 
GeneralRe: conditions problem Pin
nidhelp4-Aug-05 19:16
nidhelp4-Aug-05 19:16 
GeneralRe: conditions problem Pin
Christian Graus4-Aug-05 19:23
protectorChristian Graus4-Aug-05 19:23 
GeneralRe: conditions problem Pin
nidhelp4-Aug-05 19:37
nidhelp4-Aug-05 19:37 
GeneralRe: conditions problem Pin
Christian Graus4-Aug-05 19:45
protectorChristian Graus4-Aug-05 19:45 
If you want to validate whenever a key is pressed, yes. If you always need a valid code, then I'd go with the code that accepts nothing else ( unless it's some sort of licence key ). If you don't always need it, then I'd not bother with the event, because people can type what they like, you can proceed with and without a valid value ( although it would be better for the UI to tell people the value was not valid ). Then you can instead do this check when the button is pressed that causes the value to be used.

I'm about to leave for 2 days, so that's the end of my help for now. Good luck...

Christian Graus - Microsoft MVP - C++
GeneralRe: conditions problem Pin
Weiye Chen4-Aug-05 17:51
Weiye Chen4-Aug-05 17:51 
GeneralRe: conditions problem Pin
nidhelp4-Aug-05 18:41
nidhelp4-Aug-05 18:41 
GeneralRe: conditions problem Pin
J4amieC4-Aug-05 22:39
J4amieC4-Aug-05 22:39 
GeneralRe: conditions problem Pin
nidhelp4-Aug-05 23:24
nidhelp4-Aug-05 23:24 
GeneralRe: conditions problem Pin
J4amieC4-Aug-05 23:46
J4amieC4-Aug-05 23:46 
GeneralRe: conditions problem Pin
nidhelp5-Aug-05 0:02
nidhelp5-Aug-05 0:02 
GeneralRe: conditions problem Pin
mav.northwind5-Aug-05 2:59
mav.northwind5-Aug-05 2:59 
GeneralRe: conditions problem Pin
nidhelp7-Aug-05 15:14
nidhelp7-Aug-05 15:14 
GeneralRe: conditions problem Pin
nidhelp5-Aug-05 0:00
nidhelp5-Aug-05 0:00 
GeneralRe: conditions problem Pin
J4amieC5-Aug-05 0:18
J4amieC5-Aug-05 0:18 
Generalabout finding forms Pin
papyrus_lei4-Aug-05 16:34
papyrus_lei4-Aug-05 16:34 
GeneralRe: about finding forms Pin
Mohamad Al Husseiny4-Aug-05 17:15
Mohamad Al Husseiny4-Aug-05 17:15 
GeneralRe: about finding forms Pin
papyrus_lei4-Aug-05 17:25
papyrus_lei4-Aug-05 17:25 
GeneralRe: about finding forms Pin
Mohamad Al Husseiny4-Aug-05 17:27
Mohamad Al Husseiny4-Aug-05 17:27 
GeneralRe: about finding forms Pin
Mohamad Al Husseiny4-Aug-05 17:47
Mohamad Al Husseiny4-Aug-05 17:47 
GeneralRe: about finding forms Pin
papyrus_lei4-Aug-05 18:02
papyrus_lei4-Aug-05 18:02 
GeneralRe: about finding forms Pin
Mohamad Al Husseiny4-Aug-05 18:05
Mohamad Al Husseiny4-Aug-05 18:05 

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.