Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Design Time Event Handling
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01412773
Message ID:
01412851
Vues:
27
Excellent! Thank you!


>Hi Kevin,
>
>>Is it possible to tell when the user drops a control onto my user control in design mode?
>
>Events fire in both cases... To try this yourself, add the following code to your project:
>
>	class MyPanel : Panel
>	{
>		protected override void OnControlAdded(ControlEventArgs e)
>		{
>			MessageBox.Show("Control added");
>			base.OnControlAdded(e);
>		}
>	}
>
>Build the project, drag MyPanel from the Toolbox onto a form and add any control to the panel by dragging one onto the panel.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform