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

C#

 
GeneralRe: how to log keystroke through windows Service? Pin
Justin Perez11-Jan-08 2:31
Justin Perez11-Jan-08 2:31 
GeneralRe: how to log keystroke through windows Service? Pin
Pete O'Hanlon11-Jan-08 3:28
mvePete O'Hanlon11-Jan-08 3:28 
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 
Cannot... or won't?? You tried it?

Oh, there's just one detail on the code... replace the '1's with 'true'. Forgot that small detail in c#.

Just Create a form, and on the constructor, after the initializations, add these lines:

<br />
string text;<br />
<br />
if ( true )<br />
{<br />
   text = "closed";<br />
   FormClosed += delegate( object sender, FormClosedEventArgs e )<br />
   { MessageBox.Show( text ); };<br />
}<br />
<br />
if ( true )<br />
{<br />
   text = "closing";<br />
   FormClosing += delegate( object sender, FormClosingEventArgs e )<br />
   { MessageBox.Show( text ); };<br />
}<br />


And tell me if the output isn't "closing", "closing".

Gonçalo A.

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 
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 

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.