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 6391471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:40:32+00:00 2026-05-25T03:40:32+00:00

At this point, I almost never want to design a control with rich design-time

  • 0

At this point, I almost never want to design a control with rich design-time support again. That said…

I am already overriding the SnapLines property in my ControlDesigner-derived class to manually forward out various snaplines from the child controls of my control — the text baseline (pink) snap from the labels and comboboxes; the text inset snap from the labels; the top, bottom, left and right snaplines from the comboboxes. Those snaplines activate when the control itself is moved around on the form and when other controls are moved around it.

What I need is the ability to tell the designer to activate the snaplines and then deactivate them while I’m doing an internal move or resize of the underlying controls.

My comboboxes are resizable through overrides of OnMouseDragBegin, OnMouseDragMove, and OnMouseDragEnd in my control designer. The magic bullet I’m looking for is something I can call in Begin to tell the designer to show the snaplines and something in End to tell it to stop.

Allowing people to resize and move the internal controls at design time is kind of useless if they don’t show snaplines for each other or for external controls.

As with stuff like this, it’s incredibly hard to search for. I’ve found one post on a forum where someone asked this exact question that had (of course) no responses. That’s about it.

Obviously the issue of actually snapping to the snaplines when/if they’re shown remains. Just being able to see them would be a nice start.

Any ideas?

  • 1 1 Answer
  • 1 View
  • 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-25T03:40:32+00:00Added an answer on May 25, 2026 at 3:40 am

    The best way to do what you want todo is to create a Design Surface MSDN Reference

    I’ve used this to create my own design surface for my application so that the clients can customize the forms.

    Hope this helps,

    Johan J v Rensburg

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

Sidebar

Related Questions

I'm convinced at this point that I should be creating subclasses of std::exception for
I want to build a 2 dimensional (non ragged at this point) object array.
I cannot solve this, I'm almost accepting the fact that it might be a
At this point I'm not sure if these leaks might be CoreData related or
Up to this point, I have used the following code to restrict the application
Up to this point we have not yet needed a new masterpage for our
I am a bit confused at this point on what is an object, what
I have create a module which at this point does nothing but exist the
I've edited this quite a bit and bolded my question at this point. I
I'm learning Objective-C but I'm stuck at this point where it comes to multiple

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.