Re: Hide a form as it loads

From: Kirk Graves (krgitsoftware_at_yahoo.com)
Date: 08/12/04


Date: Thu, 12 Aug 2004 17:59:46 -0600

Herfried,

thanks for the reply. do you have a solution to my problem? I need the
main form to hide itself without ever showing to the user. I am creating a
TaskBar application and don't want the user to even see the form.

The irritating part is that there are a number of demos for this on the web,
but they all show the main form at startup.

Thanks

Kirk

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:uCzF%23PMgEHA.3016@tk2msftngp13.phx.gbl...
> * "Kirk Graves" <krgitsoftware@yahoo.com> scripsit:
> > Can anyone tell me why this code does not work?
> >
> >
> > Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
> > System.EventArgs) Handles MyBase.Load
> > Me.Hide()
> > End Sub
> >
> > If runs, but the form won't hide itself. This is the main form of the
> > application.
> >
> > to duplicate, just start a brand new windows application, double click
the
> > default form and enter Me.Hide().
> >
> > I really need this to work. Any thoughts?
>
> The form is shown directly after the 'Load' event handler has been
> executed, so a call to 'Me.Hide' would no do anything because the form
> is not yet visible at this time.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>



Relevant Pages

  • Re: WinLogo/SARPC
    ... SARPC it seems to load, showing the 3 windows, and accept simple commands ...
    (comp.sys.acorn.apps)
  • Re: Need help BAD
    ... It won't boot or load to the desktop. ... gets as far as it showing a black screen that says windows XP with the ...
    (microsoft.public.windowsxp.help_and_support)
  • Windows start up
    ... windows to load. ... details before showing a thick horizontal white dotted ... joins up and 30 minutes later, windows is loaded. ...
    (microsoft.public.windowsxp.newusers)
  • Re: Temporary Internet Files
    ... lost chains are removed and againg that particular folder is showing 73.5 GB ... But I don't know whether the equivalent tool is available for windows XP? ... > Virtual memory has little to do with the free space that you have on your hard disk. ... > a dedicated space on your hard disk which is used in conjunction with RAM) and was increasing it. ...
    (microsoft.public.windowsxp.general)
  • Re: Error Messaage: Windows Not Genuine
    ... I am sure the person I bought it from installed a pirated ... The PC has a sticker showing ... If the computer has a sticker of authenticity for Windows XP Home on it, ... computer manufacturer. ...
    (microsoft.public.windowsxp.basics)