Re: Starting up the win form as non visible

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



If you don't want the form to be displayed until you need it, use a console application instead and close the handle to the console to hide it. Then, instantiate your form when you need to show it.

One question though: If you succeed in hiding the form, how do close your application?

--
Bryan Phillips
MCT, MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com
Web Site: http://www.composablesystems.net



"melon" <elty123@xxxxxxxxx> wrote in message news:1178558682.566828.317450@xxxxxxxxxxxxxxxxxxxxxxxxxxx:

So I have something like

Application.Run(new PopupForm());

public PopupForm()
{
InitializeComponent();
}

I want the PopupForm as non visible from anywhere (including the
actual form should be non visible, as well as in task bar, alt tab
bar). I tried to add this.Visible = false, or this.Hide() in the
constructor of PopupForm but none of them works.... the form still
shows up all the time. Is there anything I have done wrong?

I also tried to start it up as Minimized, but then it is still visible
in the alt tab bar.

.



Relevant Pages

  • Re: Starting up the win form as non visible
    ... Bryan asks a good question. ... I want the PopupForm as non visible from anywhere (including the ... actual form should be non visible, as well as in task bar, alt tab ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Starting up the win form as non visible
    ... I want the PopupForm as non visible from anywhere (including the ... actual form should be non visible, as well as in task bar, alt tab ... constructor of PopupForm but none of them works.... ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: sendmessage and windows
    ... get when you type run cmd.exe - but it just changes the title bar ... I can do it in Wordpad. ... But if the window chooses to ignore WM_SETTEXT messages, ... Try Keybd_Event and Console ...
    (microsoft.public.vb.winapi)
  • Re: Activist Cindy Sheehan Arrested in Washington, DC
    ... I crown Alan Lichtenstein with the title, ... Maybe Alan and Rita can get drunk together to console each ... one or more of them might just be found in your local bar. ...
    (soc.retirement)
  • Re: OS X Mail crashes with attachments
    ... Every time I select something to attach and click OK, ... From the Console menu bar, ... From the Console menu bar, ... The system log will usually give you an indication as to what is causing startup issues. ...
    (comp.sys.mac.system)