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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:16:55+00:00 2026-05-19T04:16:55+00:00

I created a little UserControl and it works perfectly. During design view in Visual

  • 0

I created a little UserControl and it works perfectly.

During design view in Visual Studio, I need to modify some things as the control is resized.

Here’s the control:

alt text

It’s a comboxBox, that is used to display the selected color; and a XAML usercontrol. But that’s not quite important.

Basically what I want is that if someone resizes this control during design view in Visual Studio, that little black block remains 1px away from the right side of the control.

I have tried modifying the code in the InitializingComponent() method but it seems that you can’t do that.

Thanks for the suggestions and help.

  • 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-19T04:16:56+00:00Added an answer on May 19, 2026 at 4:16 am

    You should set the child control’s Anchor to Right.
    For more information, see MSDN.

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

Sidebar

Related Questions

I have created a usercontrol which is basically a button with some nice little
Hi I have created a little application to move some files around and put
Got a strange problem created a little stored proc which need to execute a
I have created a custom UserControl and then another control that is a subclass
I've created a little wpf test application which renders some random rectangles every 30
I have created a little pre-commit hook in python. This hook works like a
I created a little web spider in Python which I'm using to collect URLs.
I've created a little script for displaying a calendar but the month is 1
I have created a little test project to try to resolve a problem I
I've just created a little app that programmatically compiles code using the C# Compiler,

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.