custom panel control

S

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!
 
P

Phill W.

Smokey said:
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.
 
A

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
 

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