I found the problems..
#1 was missing MyEventReceiver receiver; just after main...
#2 I moved the event before main...
#3 I added &receiver..
Works like a champ now..
I probably wouldnt have found this for a very long time if wasnt for your guys help.. Thanks again and I hope it helps others out to read this forum as well as it does for me...
How do you exit examples?
Yes alt + f4 will but not everyone knows this lol.. In fact I found it the hard way and did every combo of alt + keys that I could tell I figured it out...
Anyway that isnt very good programming to not have some natural way to close the program..
My examples here when fixed with others help dose work so if anyone wants to add it to there projects your programs users will be able to click on escape to close the program using the code from within the program to close the app insted of windows... Im not sure how other operating systems work but id have to gues that the alt + f4 may not work on all operating systems... So is best to write app termination into your application insted...
Again thanks for all the help ive gotten in this forum..
Anyway that isnt very good programming to not have some natural way to close the program..
My examples here when fixed with others help dose work so if anyone wants to add it to there projects your programs users will be able to click on escape to close the program using the code from within the program to close the app insted of windows... Im not sure how other operating systems work but id have to gues that the alt + f4 may not work on all operating systems... So is best to write app termination into your application insted...
Again thanks for all the help ive gotten in this forum..