Re: Hidding a window and preventing Alt-Tabbing to it
From: Sijin Joseph (sijinNOSPAMdotnet_at_hotmail.com)
Date: 11/30/04
- Next message: Keith: "Cannot create dataset with wizard"
- Previous message: Sijin Joseph: "Re: Creating VS Studio like control"
- In reply to: Danielb: "Hidding a window and preventing Alt-Tabbing to it"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 30 Nov 2004 11:37:59 +0530
Use Form.Hide() to hide the window rather than minimizing it.
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
Danielb wrote:
> 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
>
>
- Next message: Keith: "Cannot create dataset with wizard"
- Previous message: Sijin Joseph: "Re: Creating VS Studio like control"
- In reply to: Danielb: "Hidding a window and preventing Alt-Tabbing to it"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|