custom panel control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Smokey Grindle

    #1

    custom panel control

    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!


  • Phill W.

    #2
    Re: custom panel control

    Smokey Grindle wrote:[color=blue]
    > 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)[/color]

    You need to look at Designer Classes (specifically, the
    ParentControlDe signer 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.


    Comment

    • augurry

      #3
      Re: custom panel control

      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:[color=blue]
      > 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![/color]

      Comment

      Working...