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:
01412783
Vues:
41
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.
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform