Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Odd designer behavior
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Odd designer behavior
Divers
Thread ID:
01034310
Message ID:
01034310
Vues:
62
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)
Semper ubi sub ubi.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform