Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Editing user controls
Message
De
26/01/2010 07:13:54
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01445953
Message ID:
01445954
Vues:
38
Hi Pete,

>Hi All, I've created a usercontrol comprising of ; a groupbox and several checkboxes. What I would like to have, is, the capability to resize and position the checkboxes when I drop the control on a form ( depending on the form I use the control on.) Is this possible ? I've managed to resize the groupbox by anchoring the appropriate sides to the container but none of the contained controls are "selectable" at design time - is this by design ? any help much appreciated

I don't think you could visually edit the placement or any other property of the contained controls. You can however expose properties that could be set such as position through your container control. Wouldn't be as easy, but should be able to do it. If you had a property like say SetCheckBoxAlphaPosition on your user control and it in turn set the position of the checkbox. The problem with this approach is the visual aspect. You would not see it at design time. Terrible huh?
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform