Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Odd designer behavior
Message
De
20/07/2005 20:11:46
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01034310
Message ID:
01034497
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform