this.Visible not affecting

  • Thread starter Thread starter baramuse
  • Start date Start date
B

baramuse

Hi,


I have a MyPanel class derivated from Control (not from panel because I
want to be able to call CreateGraphics()) and when I want to affect the
Visible propriety of one of my MyPanel it doesn't "save" it.
(When I do this.Visible = true, if I place a breakpoint just after this
line, the debugger says that this.Visible is always = false ??????)
The propriety of the others MyPanel works fine...
Is there any condition for witch the propriety Visible would be accessible?


Ps: sorry for my poor english :s

Thanks a lot
 
baramuse said:
Hi,


I have a MyPanel class derivated from Control (not from panel because I
want to be able to call CreateGraphics()) and when I want to affect the
Visible propriety of one of my MyPanel it doesn't "save" it.
(When I do this.Visible = true, if I place a breakpoint just after this
line, the debugger says that this.Visible is always = false ??????)
The propriety of the others MyPanel works fine...
Is there any condition for witch the propriety Visible would be accessible?


Ps: sorry for my poor english :s

Thanks a lot

Sorry I found why...
the parent control must have its Visible propriety to TRUE... It
seems... logical :$
Will cross all my fingers seven times before typing stupid questions
like this one... :)

Have a nice day all !!
 
Back
Top