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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:05:05+00:00 2026-05-13T10:05:05+00:00

I am editing custom control in control editor of Visual Studio 2008 My custom

  • 0

I am editing custom control in control editor of Visual Studio 2008

My custom control has datagrid view on the left and buttons on the right. I want my control when resized to keep button size constant always and keep them aligned to right border and only my datagrid control to be resized so that horizontal distances between borders and control remained the same. (See illustration below) I remember there was some feature in WinForms and Editor like anchors or other that would me to do that automatically. I just cannot find it in MSVS.

==============================
| ****************  *button*  |
| * datagridview *  *button*  |
| *              *  *button*  |
| ****************            |
==============================


=================================
| *******************  *button*  |
| * datagridview    *  *button*  |
| *                 *  *button*  |
| *******************            |
================================
  • 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-13T10:05:06+00:00Added an answer on May 13, 2026 at 10:05 am

    Anchor the buttons right, top. Then anchor the datagrid left, right and top.

    That should do it.

    Have a look at

    Control.Anchor Property

    and

    Form Anchor

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

Sidebar

Related Questions

When editing Silverlight XAML in Visual Studio 2008, the Document Outline panel is not
When editing a resource in the Visual Studio resource view, I find that a
I want to create custom WPF control that has a single child control inside.
I'm editing a ListViewItem template and I'm trying to add a custom control to
I have a custom control inherited from RichTextBox. This control has the ability to
I have a custom DataGridViewCell with a user-control as its editing control. The cell
Ok so I have built a custom control that handles wysiwyg editing. Essentially on
I'm creating a custom Editing Control for a DataGridView which is based on TextBox.
I have an image editing application, and I have custom adorners which get added
Editing a RichTextBox control's text (more specifically, modifying selection font/color) programmatically seems to be

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.