Thanks to some very enthusiastic audience members at my Honolulu MSDN Event last Wednesday, I actually left the event with more questions than answers... 3 to be exact. Just as I was offering everyone else the opportunity to do a little extra-curricular work to reinforce their learning from the three sessions I presented, I opened myself up to questions and took 3 home to find quality answers beyond the scope of my knowledge at that moment.
Q. How can you implement drag and drop capabilities for a custom control?A. Oh, if only I had a little more time on Wednesday's event. After exploring in Visual Studio .NET 2003's Object Browser, I quickly found the answer to this one. The basic System.Windows.Forms.UserControl exposes all of the drag and drop events and property that we explored in the first session of the day. UserControl is inheriting these events and property details from the most basic of controls, System.Windows.Forms.Control. By utilizing either the Control class or the UserControl class (or any other control type, for that matter), you should automatically have the functionality built in to support drag and drop capabilities.
Q. Where is the information stored for ASP.NET Tracing?A. First thing to note is that ASP.NET Tracing is distinct from .NET Tracing and utilizes a TraceContext object. The articles I found provided limited insight into this class, so my suspicion is that the data stored in this class is located in a local object that is available as part of the active session and once the session is finished, the data disappears. If anyone can shed additional light on this one, please add your comments.
Q. How can I define project or system dependencies within Visual Studio Team System?A. After spending a bit of time exploring the expansive functionality within the upcoming Visual Studio Team System, I discovered that there are many places within the modeling tools (Logical Datacenter Designer, Application Connection Designer, etc.) to define different settings, constraints or dependencies. You can even define your own "user-defined settings" for your servers, zones and applications. This answer has a hands-on section: visit http://labs.msdn.microsoft.com/vs2005/ to download the latest beta bits and play around with Visual Studio 2005 and Team System in the privacy of your own home :-) Once you've had a chance to explore, let me know what you think.