D
Dmitriy Lapshin [C# / .NET MVP]
Hi all,
It seems that I have found one case when the Windows Forms desginer silently
removes controls from a form. The sequence of steps that would cause the
designer to silently kill a control is as follows:
1. Create a simple user control that would successfully compile and run
2. Create a form and add the control to the form in the designer
3. Now modify the control to throw an exception in its constructor and
re-compile the project.
4. Open the form in the designer. The control should disappear.
It seems that I have found one case when the Windows Forms desginer silently
removes controls from a form. The sequence of steps that would cause the
designer to silently kill a control is as follows:
1. Create a simple user control that would successfully compile and run
2. Create a form and add the control to the form in the designer
3. Now modify the control to throw an exception in its constructor and
re-compile the project.
4. Open the form in the designer. The control should disappear.