Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / November 2004

Tip: Looking for answers? Try searching our database.

ToolWindow & UserControl

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nils Knafla - 26 Nov 2004 14:43 GMT
ToolWindow Add-in Example from:
Visual Studio .NET 2003 Automation Samples

The ToolWindow Add-in Example shows how I can create a UserControl in a
ToolWindow.

I am developing an Add-in in C#.

I would like to display one of several UserControls in the ToolWindow
depending on the selection in the classview, i.e. I would like to exchange
the UserControl in the Toolwindow. What is the best way for achieving this?

Thanks in advance,
Nils
Carlos J. Quintero [MVP] - 30 Nov 2004 13:22 GMT
Regarding to detect the selection in the class view, there are bad and good
news. See:
http://weblogs.asp.net/craigskibo/archive/2003/09/22/51662.aspx

Regarding to change the hosted usercontrol in a toolwindow, I think that
nobody has done that, but you can try calling the HostUserControl (or
similar) function with the new usercontrol. Since the shim control source
code is provided, you can tweak it. Another approach is to have a single
usercontrol that changes its user interface depending on something.

Signature

Carlos J. Quintero

The MZ-Tools all-in-one add-in, now for .NET: http://www.mztools.com

> ToolWindow Add-in Example from:
> Visual Studio .NET 2003 Automation Samples
[quoted text clipped - 11 lines]
> Thanks in advance,
> Nils

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.