Link to home
Start Free TrialLog in
Avatar of Ashok
AshokFlag for United States of America

asked on

How to hide (completely) Form1 (main)?

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

Avatar of jppinto
jppinto
Flag of Portugal image

Did you've tryed this:

Me.Visible=False

jppinto
ASKER CERTIFIED SOLUTION
Avatar of jppinto
jppinto
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
In VB6:

Private Sub Form_Load()
    Form1.Hide
End Sub
Avatar of Sinistra_D32
Sinistra_D32

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.
SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ashok

ASKER

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

Thanks