Re: Hidding a window and preventing Alt-Tabbing to it

From: Sijin Joseph (sijinNOSPAMdotnet_at_hotmail.com)
Date: 11/30/04


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



Relevant Pages

  • Re: Problems hiding the main form and displaying only a tray icon
    ... > I want my application to run most of the time as just an notify icon> visible in the system tray, with some dialogs windows that open if the> user selects an option from the context menu on the tray icon. ... It was all fine until I noticed that the> form was visible in the Alt-Tab menu and once you had alt-tabbed to it> there was no way of hiding it again:(> ... > But today I have noticed that now I can no longer minimize or hide the> form it appears as a minizied tool window in the bottom left of my desktop> when the application is running and even worse if the user double clicks> on the title bar the window expands to its normal size, apart from the> form is empty and there's no way to minimize it again! ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: APPCRASH - Microsoft Office Word has stopped working
    ... Disabling HP related files from the Startup: ... 1.Click Start Icon. ... On the User Account Control window, ... When I use Mailmerge - Envelopes, after printing the envelope and close Word ...
    (microsoft.public.word.mailmerge.fields)
  • RE: word 2007 app crash
    ... I just did the "quick fix" by changing my default printer to Microsoft ... If you does not have any other printer icon in Printers and Faxes folder, ... On the User Account Control window, ... Click Restart to apply the changes. ...
    (microsoft.public.word.application.errors)
  • Re: JDK 1.6 and JFrame icon
    ... for the main window is not displaying under Windows when using Alt-Tab. ... I does display fine in the window itself and in the task bar, but not when I use Alt-Tab. ... Maybe a bug related to the new 1.6 feature which allows you to specify multiple icon images. ...
    (comp.lang.java.gui)
  • TWM for the common man (or Maam)
    ... twm - Tab Window Manager for the X Window System ... Twm is a window manager for the X Window System. ... It provides titlebars, shaped windows,several forms of icon management, user-defined macro functions, click-to-type and pointer-driven keyboard focus, and user-specified key and pointer button bindings. ...
    (comp.sys.ibm.ps2.hardware)