Hi MCMoser,
> It seems that the designer is not executing the default constructor anymore.
Where is the default constructor?
I performed a test in VS08 but didn't reproduce the problem. In my test, I create a UserControl and add a TextBox on the UserControl. In the UserControl's default constructor, I set the Text property of the TextBox as follows:
public partial class UserControl1:UserControl
{
public UserControl1()
{
InitializeComponent();
this.textBox1.Text = "foo";
}
}
Build the project and add the UserControl onto a form. I see the text "foo" appears in the TextBox within the UserControl.
Since I couldn't reproduce the problem on my side, could you please tell me how to reproduce it?
Sincerely,
Linda Liu