Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design Time Event Handling
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01412773
Message ID:
01412783
Views:
43
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform