D
Danielb
I'm trying to hide the main form of my application, as I want all of the
user interaction with my application to come from interacting with a notify
icon with a context menu in the system tray (which I have working). I've
figured out how to hide the form easy enough, set the WindowState to
Minimized and ShowInTaskbar to False.
What I can't figure out is how to prevent the user Alt-Tabbing to the
window, as its still visible in the Alt-Tab menu. I can set the windows
FormBorderStyle to FixedToolWindow or SizeableToolWindow and it will no
longer show up in the Alt-Tab menu but now it will now minimize to the
bottom left of the desktop just showing the windows title bar instead of
being completely hidden!
Does anyone know of any way to completely hide a window visibly(so no part
of the window is visible anywhere), with no icon on the task bar or on the
Alt-Tab menu? All I really want is to be able to run a notify icon in the
system tray and a context menu for the icon but I'm don't know of any other
way to do it other than to run it in a enclosing form.
I've been wondering if making my application a service make things easier
but I've no experience with programming services and it seems a bit of
overkill for what I'm wanting to do!
Any advice would be most appreciated!
Cheers,
Danielb
user interaction with my application to come from interacting with a notify
icon with a context menu in the system tray (which I have working). I've
figured out how to hide the form easy enough, set the WindowState to
Minimized and ShowInTaskbar to False.
What I can't figure out is how to prevent the user Alt-Tabbing to the
window, as its still visible in the Alt-Tab menu. I can set the windows
FormBorderStyle to FixedToolWindow or SizeableToolWindow and it will no
longer show up in the Alt-Tab menu but now it will now minimize to the
bottom left of the desktop just showing the windows title bar instead of
being completely hidden!
Does anyone know of any way to completely hide a window visibly(so no part
of the window is visible anywhere), with no icon on the task bar or on the
Alt-Tab menu? All I really want is to be able to run a notify icon in the
system tray and a context menu for the icon but I'm don't know of any other
way to do it other than to run it in a enclosing form.
I've been wondering if making my application a service make things easier
but I've no experience with programming services and it seems a bit of
overkill for what I'm wanting to do!
Any advice would be most appreciated!
Cheers,
Danielb