How to startup form with hidden way?

Y

yxq

Hello,
I want to startup a form with hidden way like anti-virus software, how to
do?

////////////////////////////////////////////

Private Sub frmMain_Load(ByVal Sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.Hide() 'it will not work
Me.Opacity = 0 'it work
End sub

I want to use "Me.Hide".

Thank you
Steven
 
N

Newbie Coder

YXQ,

What I tend to do is use Sub Main in a module, set opacity to 0 to make sure,
remove taskbar icon & post show minimised. That way if using a TrayNotifyIcon
control you don't get a flicker from the form

--
Newbie Coder
(It's just a name)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top