Home All Groups Group Topic Archive Search About
Author
31 May 2006 2:53 PM
Smokey Grindle
I am trying to write a custom panel control that I can place objects into at
design time, however, i want a header on the top of it which can not contain
controls (its a static header) in the image shown below, I have a red
outline marking the region i dont want a control to be able to be placed in,
I want the white area below that to be the container only. How do I go about
making a panel that can do this with a header on the top and a container on
the bottom? thanks!

Author
31 May 2006 2:57 PM
Smokey Grindle
whoops, image didnt attach.. here it is

[attached file: example.png]
Author
1 Jun 2006 11:44 AM
Phill W.
Smokey Grindle wrote:
> I am trying to write a custom panel control that I can place objects into at
> design time, however, i want a header on the top of it which can not contain
> controls (its a static header)

You need to look at Designer Classes (specifically, the
ParentControlDesigner class) that allows you to control (no pun
intended) which Controls can be dropped where while you're designing
another Control or Form.

HTH,
    Phill  W.
Author
1 Jun 2006 2:10 PM
augurry
You can just make a custom control, the place an picturebox + label in
there, and then asign some properties(like image height, width,
location, text, and de text for the label).
also you can add beter support for the controls your adding to it.

good luke

Smokey Grindle wrote:
Show quoteHide quote
> I am trying to write a custom panel control that I can place objects into at
> design time, however, i want a header on the top of it which can not contain
> controls (its a static header) in the image shown below, I have a red
> outline marking the region i dont want a control to be able to be placed in,
> I want the white area below that to be the container only. How do I go about
> making a panel that can do this with a header on the top and a container on
> the bottom? thanks!