make usercontrol invisible at design time

D

Dave

hi,

I'm have a control which inherits from the panel control and I want to
make it invisible at design time -- like the Timer control. Any
suggestions??

Thanks,
davermcl
 
C

Cor Ligthert

Dave,

As I understand it, is your question a little bit strange, a panel inherits
from controls a timer does not. A panel is meant to be on a form, not a kind
of component icon at the bottom..

So maybe you can explain it more?

Cor
 
H

Herfried K. Wagner [MVP]

Dave said:
I'm have a control which inherits from the panel control and I want to
make it invisible at design time -- like the Timer control. Any
suggestions??

Inherit from 'System.ComponentModel.Component' instead of inheriting from
'Panel'.
 

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