Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 301641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:01:28+00:00 2026-05-12T07:01:28+00:00

I have a custom control that uses a designer I’ve inherited from ParentControlDesigner to

  • 0

I have a custom control that uses a designer I’ve inherited from ParentControlDesigner to allow child controls to be dropped. I’m not using any internal designers, just straightforward single-parent stuff.

This control draws a “header”, so I’m trying to do three things:

  1. Have child controls dock to the bottom of the header instead of the top of the control, when set to Top or Fill.

  2. Have child controls snap to the bottom of the header when dragging with the mouse, instead of the top of the control.

  3. Prevent controls from being dragged onto the header area, period (I have a feeling this may not be possible).

(1) is the most important – I know it’s possible because I’ve seen other controls that do it. (2) would also be a major help. (3) I don’t care about that much, it would just be nice to have.

Would anyone be able to point me in the right direction on how to implement these rules, without having to resort to a clumsy sub-panel and the InternalControlDesigner methods?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T07:01:29+00:00Added an answer on May 12, 2026 at 7:01 am

    Prevent controls from being dragged
    onto the header area, period (I have a
    feeling this may not be possible)

    Having the control (the control itself, not the designer) override Control.DisplayRectangle.get may help restrict its children.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, I have created a custom control that uses an UpdatePanel, and as I
I have a custom control that inherits from UserControl , and I can't get
I have a custom control that inherits from .NET's CompositeControl class. This control overrides
In WPF, I have a custom control that inherits from TreeView. The code is
I have a custom templated control(toolbar) that contains a custom usercontrol(button) The button uses
I have a class derived from slider which uses a custom control template and
I have a custom control that uses a formTable control that has a formColumn
I have a simple custom user control that uses jqGrid. the control is as
I have a custom DataGridView column that uses an embedded control that pops up
I have a custom control that is derived from ListView . This list view

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.