Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odd designer behavior
Message
From
20/07/2005 20:11:46
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01034310
Message ID:
01034497
Views:
17
Very bizarre, Einar!! VS got confused somewhere! I would change it in the property sheet to be 136, 192 and see if that takes care of it for good.

~~Bonnie



>I will try to explain the odd designer behavior that I see.
>I created my own user control and added it to my form. I put the control in the location that I wanted and I run the app. When the app is running the custom user control is in the location that I put it, then I close the app and go back to the designer. Now the user control is moved to the location 0,0 in the designer (and in the property sheet), but it I look at the code the user control is still in the location where I put it. There is the code from the auto generated code:
>
>this.waterLevel1.Location = new System.Drawing.Point(136, 192);
>
>
>If I run the app again the user control will be in the location 136,192, but in the designer the user control is in location 0,0.
>
>I hope I explained it well enough so that someone can tell me what is going on here. Has anyone else seen this before? What can I do?
>
>Einar
>
>UPDATE: I removed the control from the form and added it again and the behavior described above was gone. (I would still like to know what happend)
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform