How to hide (completely) Form1 (main)?

Ashok
Ashok used Ask the Experts™
on
I am trying to write Windows application to create Desktop SideBar.

My main form has code in Form1_Load.

After the form is loaded, I want to hide the Main Form.
BTW, I already tried    Me.Hide() in the last line of Form1_Load.

Thanks,
Ashok

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Did you've tryed this:

Me.Visible=False

jppinto
Commented:
Or even this:

Private Sub Form1_Shown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shown
        Me.Hide()
End Sub

Commented:
In VB6:

Private Sub Form_Load()
    Form1.Hide
End Sub
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Theoretically you can't. It's a protection against writing viruses. There are some tricks tho. Like putting ti to  (9000,9000) location, calling run() without a form specified and so on.
Mike TomlinsonHigh School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
Top Expert 2009
Commented:
Just set Opacity to 0 (zero), and ShowInTaskBar to False.

Done!
AshokSr. Software Engineer

Author

Commented:
Now I have the Form invisible on the start of the application.
I will post separate question on the same application later.

Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial