I register a hotkey following this article:
http://www.dotnet2themax.com/ShowCon...0-c2bb7075ba78
Using windows api to archive it.
But when I use it as a part of my program(it would minimize to tray
before you call it), I found it doesn't work. Finally I found the
statement which cause it:
this.ShowInTask bar = false;
Though I wrote "ShowInTask bar = true" later in the program, but hotkey
didn't work anymore.And if I block it, hotkey is work well.
I have searched a lot, but no answer. I thought I must have
ShowInTaskbar remains because I have to minimize program when it
startup. I have no idea if there is another way to do so.
So I want to activate my application with global hotkey and let it stay
in the tray before I call it.
Thanks!