Automatically minimize and hide form in VB.Net

April 4, 2008

(Or minimize and hide form during startup..)

As per the title above.. perhaps for whatever reason, you’re trying to do it. Cause there was a time I need to do it.

Just add this line to your form_load

Me.WindowState = FormWindowState.Minimized
Me.Hide()

What it does is, everytime your form loads, it will be minimized and hidden. For me, the only way to see the form, is to click on the ‘Show’ button on the system tray. Because I even set the form’s ShowInTaskbar property to false.

Hope it helps somebody.

Entry Filed under: Technology. Tags: , , , .

2 Comments Add your own

  • 1. Yannick  |  January 13, 2009 at 11:01 pm

    Yeah, it did help me, thanks!

  • 2. ricohsanusi  |  June 18, 2009 at 4:41 am

    yup, thanks. it helpfull..

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

April 2008
M T W T F S S
« Mar   Jul »
 123456
78910111213
14151617181920
21222324252627
282930  

Most Recent Posts