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 / IDE / February 2008

Tip: Looking for answers? Try searching our database.

What is the VS 2008 toolbox filtering behavior when targetting 2.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
opellegr - 29 Jan 2008 21:32 GMT
I am trying to decipher how the toolbox filters 3.5 or 3.0 controls from
projects that target the 2.0 framework.  We develop a set of Windows Forms
and Web Forms controls, and I noticed that almost all of the Web Forms
controls are filtered out, but none of the Windows Forms are filtered.  By
this I mean that if I change my project's target framework version to 2.0,
the controls are no longer visible in the toolbox, but when I change it back
to 3.5 they are visible again.

This is neat and actually what I want, but I'm curious about what triggers
this.  The single Web Forms control that is not filtered is in a different
assembly than the ones that are filtered, but they both have the same version
number.  The assembly that contains the filtered controls does reference
System.Web.Extensions, but adding this reference to the other assemblies does
not do the trick.  I have tried adding references to 3.5-specific DLLs, and
even tried adding calls to 3.5-only class methods.  The only thing I know is
different is there are some ASP.NET AJAX controls in the Web Forms assembly,
but even the non-AJAX controls are being filtered from the toolbox.

I have played around in the past with creating DLLs with controls that
target different versions, and I seem to remember deciding that the
environment did not do this filtering, but it looks like something in the Web
Forms controls is triggering the behavior.

So, my question is what determines if an assembly is displayed in the
toolbox for a project that targets the 2.0 framework?  I'm sure there's some
minor difference between the two assemblies that I'm overlooking, but so far
I haven't been able to find it.  Is the process the toolbox uses to determine
if it should display an item documented somewhere?  Is the behavior I'm
seeing not expected?  Is there a recommended method to cooperate with this
functionality?
opellegr - 06 Feb 2008 20:44 GMT
I still haven't made any discoveries.  Has anyone else experienced this?

> I am trying to decipher how the toolbox filters 3.5 or 3.0 controls from
> projects that target the 2.0 framework.  We develop a set of Windows Forms
[quoted text clipped - 26 lines]
> seeing not expected?  Is there a recommended method to cooperate with this
> functionality?

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.