
Signature
Tim Wilson
.Net Compact Framework MVP
OK, fair question. I've created a SuperClass which includes, in addition to
a bunch of code, three visual control elements. Now I'm creating a test
form to test some of the code and some additional code and the controls are
really in the way of the test buttons and textboxes, etc., that I'm putting
on this test form. I just don't want to see them at design time. At run
time, they are hidden by some start up code.
> Are you asking about hiding inherited properties or did you really mean
> hiding inherited controls within some type of composite control (like a
[quoted text clipped - 3 lines]
>> like to hide some of the inheritted controls at design time. Can I do
> this?
Tim Wilson - 05 Sep 2005 22:37 GMT
So the controls are supposed to be hidden at runtime too? If so then just
set the "Visible" property of each control to false from within the
constructor (sub New in VB). Or is there more to this?

Signature
Tim Wilson
.Net Compact Framework MVP
> OK, fair question. I've created a SuperClass which includes, in addition to
> a bunch of code, three visual control elements. Now I'm creating a test
[quoted text clipped - 10 lines]
> >> like to hide some of the inheritted controls at design time. Can I do
> > this?
Christopher Weaver - 06 Sep 2005 00:18 GMT
Right. Within the Load method of the form, I've set the Visible property to
false on each of the controls that I don't want to see at run time, and that
works. It's just that they're anoying during design and I was wondering if
I could make them non-visible there as well. Seems unlikely, but I thought
I would ask anyway.
> So the controls are supposed to be hidden at runtime too? If so then just
> set the "Visible" property of each control to false from within the
[quoted text clipped - 18 lines]
>> >> like to hide some of the inheritted controls at design time. Can I do
>> > this?
Tim Wilson - 06 Sep 2005 01:07 GMT
So it sounds like you're doing visual inheritance with forms. Is that
correct? If that's the case then, as far as I know, you cannot hide the
controls that are inherited from the base form at design-time. I thought
that you may have been refering to a custom control, like a custom
UserControl, that contains other controls.

Signature
Tim Wilson
.Net Compact Framework MVP
> Right. Within the Load method of the form, I've set the Visible property to
> false on each of the controls that I don't want to see at run time, and that
[quoted text clipped - 24 lines]
> >> >> like to hide some of the inheritted controls at design time. Can I do
> >> > this?