Invisible starting form

How can I make invisible the starting form of my application? (in the form designer there is not the invisible property)

thank you everybody!

[154 byte] By [Rainz] at [2007-12-24]
# 1
I think you'd have to do this by begining your app from a Sub Main() so that you can instantiate the initial form, load it, then set it's visible to false.
rkimble at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2
Set the Opacity on the WinForms property to 0 from 100 and watch the fun begin...<g>
OmegaMan at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 3
ok, i've already tryed something like that, but i did not know where is supposed to be the Main sub..
Rainz at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 4

The opacity works if you don't mind the form still being shown in Alt-Tab (it'd also still be on the TaskBar unless you set ShowInTaskbar=False).

rkimble at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 5
thank you, combining it with the showintaskbar property works, but you know that's not the way you do it
Rainz at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 6

Usually you put it in a module by itself.

You'll then have to go into My Project and on the Application tab clear the Enable application framework. Then you can choose Sub Main() from the Startup Form dropdown.

rkimble at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 7
that's fine, thank you!
Rainz at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 8
I won't argue with you...but a invisible window is better served as console application or service.
OmegaMan at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 9
Rainz wrote:
thank you, combining it with the showintaskbar property works, but you know that's not the way you do it

Hi Rainz, Did the posts resolve the problem?

If so mark the post(s) that helped you as the answer(s), so when others search the forums, they might be more inclined to look at a successful post than a non successful one...in the search results the Answered posts are bubbled to the top before the unanswered.

Thanks

OmegaMan at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...