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