User control looses location in designer after rebuild

Kurt

Regular
Joined
Feb 14, 2003
Messages
99
Location
Copenhagen
Hi,

I made two user controls (just containing some labels and textboxes each). After building the project I added both of them on a windows form. When rebuilding the project, the designer shows one of the user controls in the top left corner of the windows form, but in the 'Windows Form Designer generated code' section, the control still has the correct Location property set!

At runtime the controls are placed correctly, but the designer in Visual Studio displays the control at a wrong location at design time.
 
Back
Top