Hooking into Visual Studio 2008 Designer drag events
-
Is this the right spot to ask questions about Visual Studio 2008 extensibility? I am writing a Visual Studio 2008 Integration Package, using the SDK, and I would like to attach behavior code to the designer drag events (DragEnter, DragOver and DragDrop). I have a custom tool window with a list of available commands to our electronic measurement device. I want the ability to drag a command from that list onto the surface of a winform designer. Dropping the command item should automatically create the default control type and write the code that hooks it to the equipment command. Alternatively, I'd like it if the user could drag a command onto an existing control and have the connection code written. I think I see how to automate the creation of controls and code in a Form designer, but I can't figure out how to hook that code to the designer drop event. Thanks, Aaron
-
Is this the right spot to ask questions about Visual Studio 2008 extensibility? I am writing a Visual Studio 2008 Integration Package, using the SDK, and I would like to attach behavior code to the designer drag events (DragEnter, DragOver and DragDrop). I have a custom tool window with a list of available commands to our electronic measurement device. I want the ability to drag a command from that list onto the surface of a winform designer. Dropping the command item should automatically create the default control type and write the code that hooks it to the equipment command. Alternatively, I'd like it if the user could drag a command onto an existing control and have the connection code written. I think I see how to automate the creation of controls and code in a Form designer, but I can't figure out how to hook that code to the designer drop event. Thanks, Aaron
As far as extending the designer capability for controls, one of my articles might be able to help you: Targeting Design-Time Events of UserControls[^].
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my Blog