Odd problem with Me.Hide() and Me.Visible = False

  • Thread starter Thread starter Anthony P.
  • Start date Start date
A

Anthony P.

For some reason, Me.Hide() and Me.Visible=False doesn't work! In my
form_load method, the very fist statement is Me.Hide() but the form
shows. So I tried Me.Visible = False and the form still shows. I've
even tried hiding the form from another form using frmMainForm.Hide()
or frmMainForm.Visible = False and the form still shows.

Any idea what might be going on here?

Thanks!
Anthony
 
Anthony,

I was forgotten the solution for this problem, but it is easy.

Set the opacity to zero

Opacity = 0

Cor
 
Anthony said:
For some reason, Me.Hide() and Me.Visible=False doesn't work! In my
form_load method, the very fist statement is Me.Hide() but the form
shows. So I tried Me.Visible = False and the form still shows. I've
even tried hiding the form from another form using frmMainForm.Hide()
or frmMainForm.Visible = False and the form still shows.

Any idea what might be going on here?

The problem is that you first decide to show a Form, then you decide not to
show it. Decide before once.


Armin
 
Anthony P. said:
For some reason, Me.Hide() and Me.Visible=False doesn't work! In my
form_load method, the very fist statement is Me.Hide() but the form
shows. So I tried Me.Visible = False and the form still shows. I've
even tried hiding the form from another form using frmMainForm.Hide()
or frmMainForm.Visible = False and the form still shows.

Any idea what might be going on here?

Thanks!
Anthony

Are you using VS2008?
Try putting Me.Hide() in the Activated event procedure. It works for me
here.
 
Back
Top