Click here to Skip to main content
15,921,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to log keystroke through windows Service? Pin
Dave Kreskowiak11-Jan-08 4:01
mveDave Kreskowiak11-Jan-08 4:01 
Questionstack issue Pin
Goncalo Oliveira11-Jan-08 0:29
Goncalo Oliveira11-Jan-08 0:29 
GeneralRe: stack issue Pin
Dave Kreskowiak11-Jan-08 4:07
mveDave Kreskowiak11-Jan-08 4:07 
GeneralRe: stack issue Pin
Goncalo Oliveira11-Jan-08 4:21
Goncalo Oliveira11-Jan-08 4:21 
GeneralRe: stack issue Pin
Dave Kreskowiak11-Jan-08 4:38
mveDave Kreskowiak11-Jan-08 4:38 
GeneralRe: stack issue Pin
Goncalo Oliveira11-Jan-08 4:46
Goncalo Oliveira11-Jan-08 4:46 
GeneralRe: stack issue Pin
Dave Kreskowiak11-Jan-08 6:28
mveDave Kreskowiak11-Jan-08 6:28 
GeneralRe: stack issue Pin
Goncalo Oliveira11-Jan-08 6:39
Goncalo Oliveira11-Jan-08 6:39 
Cannot, or it doesn't happen? Or... if it could not happen, then why, instead of just... cannot happen.

Try it. Just as I described on my previous post. Create a new project, with a form, and type that out...
Even I did this, to prove myself I wasn't fooling anyone; so I am not freaking ommiting anything... sheesh...

This happens because when you add code like that, in runtime, the compiler will hold to the references and not to the values; the result is that both will grab the last value of the reference. That's why it won't happen if you switch the text variable to inside the if, or if you added static text like MessageBox( "closed" );.

Advice... do try it first, before saying it CANNOT happen. I won't hold a grudge on you if you try, I promise...

Cheers

Gonçalo A.

GeneralRe: stack issue Pin
Dave Kreskowiak11-Jan-08 12:22
mveDave Kreskowiak11-Jan-08 12:22 
GeneralRe: stack issue Pin
Goncalo Oliveira11-Jan-08 12:29
Goncalo Oliveira11-Jan-08 12:29 
GeneralRe: stack issue Pin
Dave Kreskowiak12-Jan-08 6:53
mveDave Kreskowiak12-Jan-08 6:53 
GeneralRe: stack issue Pin
Dave Kreskowiak12-Jan-08 6:53
mveDave Kreskowiak12-Jan-08 6:53 
GeneralRe: stack issue Pin
Goncalo Oliveira12-Jan-08 6:58
Goncalo Oliveira12-Jan-08 6:58 
GeneralRe: stack issue Pin
Dave Kreskowiak14-Jan-08 6:06
mveDave Kreskowiak14-Jan-08 6:06 
GeneralRe: stack issue Pin
Goncalo Oliveira14-Jan-08 6:27
Goncalo Oliveira14-Jan-08 6:27 
GeneralRe: stack issue Pin
Dave Kreskowiak14-Jan-08 12:01
mveDave Kreskowiak14-Jan-08 12:01 
GeneralRe: stack issue Pin
Goncalo Oliveira14-Jan-08 12:58
Goncalo Oliveira14-Jan-08 12:58 
GeneralRe: stack issue Pin
Skippums11-Jan-08 4:49
Skippums11-Jan-08 4:49 
GeneralRe: stack issue Pin
Goncalo Oliveira11-Jan-08 4:54
Goncalo Oliveira11-Jan-08 4:54 
GeneralRe: stack issue Pin
Skippums11-Jan-08 5:03
Skippums11-Jan-08 5:03 
GeneralRe: stack issue Pin
Goncalo Oliveira11-Jan-08 5:19
Goncalo Oliveira11-Jan-08 5:19 
GeneralRe: stack issue Pin
S. Senthil Kumar12-Jan-08 23:20
S. Senthil Kumar12-Jan-08 23:20 
GeneralRe: stack issue Pin
Goncalo Oliveira13-Jan-08 5:33
Goncalo Oliveira13-Jan-08 5:33 
QuestionHow i highLight Text Box Pin
wasimsharp11-Jan-08 0:01
wasimsharp11-Jan-08 0:01 
AnswerRe: How i highLight Text Box Pin
Stu Richardson11-Jan-08 0:43
Stu Richardson11-Jan-08 0:43 

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.