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

  • Home
  • SEARCH
  • 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 4570464
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:21:55+00:00 2026-05-21T19:21:55+00:00

I want to create in C# Visual Studio 2010 my user control from standard

  • 0

I want to create in C# Visual Studio 2010 my user control from standard controls, which remains independent during design time.
Problem is, when I create standard user control like this:

public partial class MyUserControl: UserControl 
{
    public MyUserControl()
    {
        InitializeComponent();
    }
}

and I add 2 buttons and 1 textbox on it, they become a part of UserControl.
Then, when control is designed and I add it on a form, I can move it, resize etc., but I cannot click or select Button1 or Button2 or TextBox1.
Also double clicking button1 do not create button1_click event but UserControl_Load event.
I would like to achieve effect similar to DataBindingNavigator control – where you can click each button independently.

I know I can make a public property setting/returning user control Buttons or Textbox, but they’ll appear in designer, there will be no possibility to select them.

Do you think it is possible to do with standard controls? If so, how to do that?
Best regards,
mj82

  • 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-21T19:21:56+00:00Added an answer on May 21, 2026 at 7:21 pm

    You cannot do this because it does not make sense to do it.

    Suppose you could do what you ask – then on the form you would be able to move the user control buttons around etc – essentially designing the user control on the from surface itself. OK, but what about all the other forms that also have that user control? That is why once you drop the user control it is fixed. You do not design a user control per form instance, you design the control and then it is the same for every form.

    Same with clicking on the button. You want to create a click event handler but based on what you are asking for, that would happen in the form. But the button is not on your form, it is on your user control, it’s click event has to be handled in the user control, not the parent form.

    The idea behind user controls is to NOT have to do what you describe. They are pre-assembled building blocks.

    The DataBindinghNavigator is nothing more than a toolstrip. If you want that behavior, just use a tool strip.

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

Sidebar

Related Questions

I am working on the Visual studio 2010. want to create a dll which
I'm using visual studio 2010, I want to create several OvalShapes from VB PowerPacks
I want to create a Visual Studio 2010 Project Template, which is essentially a
I installed the new Visual Studio 2010. I want to create a C# Winform
I want to connect to multiple TFS server from Visual Studio 2010 team explorer.
I have developed an ASP.NET application on Visual studio 2010, which takes user details(
I want to create a Visual Studio 2010 setup project that deploys some files
I have Visual Studio 2010 with SP1 installed. I want to create a simple
I developed a program in Visual Studio 2010 Express edition. I want to create
I want to create an extension for Visual Studio 2010 that contains only a

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.