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

C#

 
GeneralRe: conditions problem Pin
Christian Graus4-Aug-05 17:35
protectorChristian Graus4-Aug-05 17:35 
GeneralRe: conditions problem Pin
nidhelp4-Aug-05 18:07
nidhelp4-Aug-05 18:07 
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 
nidhelp wrote:
what is sender? i have to replace sender with some other things right?

No, the event has an object called sender. Did you not create the event yet ? I did it this way instead of using a variable directly precisely so that you didn't need to change the code I gave you.

nidhelp wrote:
can i write the conditions which u typed under private bool.

You can set up a property if you'd like. Then you need to change the variable name though.

nidhelp wrote:
do i need to type something in OnKeyPress property?

OnKeyPress lets you check every time the user types. If they are pressing a button to do something and you need THEN to check if the code is valid, forget the events ( although the Validating event may be worth a look, I know nothing about that ), and then it would make sense to make it a private property, to encapsulate this piece of functionality.

nidhelp wrote:
thanks i've learnt quite a lot from u =)

No worries, always glad to help.



Christian Graus - Microsoft MVP - C++
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 
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 

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.