Re: Hide a form as it loads
From: Kirk Graves (krgitsoftware_at_yahoo.com)
Date: 08/12/04
- Next message: Eych: "Re: updating a table with a space in the field name"
- Previous message: Coleen: "ARGH! Converting the value of a dtatable from a string to a Double"
- In reply to: Herfried K. Wagner [MVP]: "Re: Hide a form as it loads"
- Next in thread: Herfried K. Wagner [MVP]: "Re: Hide a form as it loads"
- Reply: Herfried K. Wagner [MVP]: "Re: Hide a form as it loads"
- Messages sorted by: [ date ] [ thread ]
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/>
- Next message: Eych: "Re: updating a table with a space in the field name"
- Previous message: Coleen: "ARGH! Converting the value of a dtatable from a string to a Double"
- In reply to: Herfried K. Wagner [MVP]: "Re: Hide a form as it loads"
- Next in thread: Herfried K. Wagner [MVP]: "Re: Hide a form as it loads"
- Reply: Herfried K. Wagner [MVP]: "Re: Hide a form as it loads"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|