{"id":2843,"date":"2009-11-18T14:20:00","date_gmt":"2009-11-18T14:20:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/2009\/11\/18\/diagnosing-toolbox-filtering-errors\/"},"modified":"2019-02-14T15:42:08","modified_gmt":"2019-02-14T23:42:08","slug":"diagnosing-toolbox-filtering-errors","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/diagnosing-toolbox-filtering-errors\/","title":{"rendered":"Diagnosing Toolbox Filtering Errors"},"content":{"rendered":"<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/me_small_2.jpg\"><img decoding=\"async\" title=\"me_small\" border=\"0\" alt=\"me_small\" align=\"left\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2009\/11\/me_small_thumb.jpg\" width=\"54\" height=\"77\"><\/a> Hi again \u2013 Josh here, Toolbox developer.<\/p>\n<p>If you&#8217;ve created or installed a toolbox item, but it doesn&#8217;t appear in the toolbox when the appropriate designer is active, the first thing to do is select &#8220;Show All&#8221; from the toolbox and check to see if the item is there at all.&nbsp; (<a href=\"http:\/\/blogs.msdn.com\/visualstudio\/archive\/2009\/10\/26\/toolbox-search.aspx\">The new search feature<\/a> might help.)&nbsp; If the item is missing altogether, that&#8217;s a topic for another blog post, but I&#8217;ll briefly suggest you start by looking in the activity log (run &#8220;devenv \/log&#8221; to generate it).&nbsp; If the item is present but disabled, there are a few reasons why this may happen:<\/p>\n<p>1. There is no designer active, or the toolbox wasn&#8217;t notified of designer activation for some reason.&nbsp; (This notification should happen automatically without any explicit action from the designer itself.) <\/p>\n<p>2. The designer doesn&#8217;t implement IVsToolboxUser.&nbsp; (This interface is needed in order for the toolbox to determine which items should be enabled for this designer.) <\/p>\n<p>3. The item is tagged with a &#8220;mimimum required framework version&#8221; value that is greater than the project&#8217;s framework version.&nbsp; For example, the item might require version 4.0 of the .NET Framework, but the project is targeting version 3.5.&nbsp; (This value is deprecated in VS 2010 in favor of more descriptive metadata (see the following three bullet points), but is still supported for compatibility.) <\/p>\n<p>4. The item&#8217;s list of supported target frameworks does not include the project&#8217;s target framework or any lower-version framework of the same ID. <\/p>\n<p>5. The item&#8217;s assembly and\/or type cannot be found in the profile targeted by the project (if the project&#8217;s target framework does include a profile). <\/p>\n<p>6. The item is hidden because there is another item representing the same type from a higher-version assembly which is also compatible with the current designer and project. <\/p>\n<p>7. The designer&#8217;s IVsToolboxUser::IsSupported method indicated that the control is not supported.<\/p>\n<p>To help determine which of these is the case, create a DWORD registry value called &#8220;ShowDiagnosticToolboxTooltips&#8221;, set to 1, under HKCUSOFTWAREMicrosoftVisualStudio10.0.&nbsp; Restart VS, open the project and designer, turn on &#8220;Show All&#8221; if it isn&#8217;t already on, and hover the mouse over the unexpectedly disabled item.&nbsp; The tooltip should include some text explaining why the item is disabled:<\/p>\n<p><img decoding=\"async\" title=\"toolbox_tip\" border=\"0\" alt=\"toolbox_tip\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2009\/11\/toolbox_tip_3.jpg\" width=\"421\" height=\"295\"> <\/p>\n<p>In this example, the creator of the item only indicated it was compatible with .NETFramework v4.0, but the active designer\u2019s project is targeting v3.5, so the item is disabled.&nbsp; A similar message could be displayed if the item was compatible with the project, but there was a higher-assembly-version item with the same type name; that\u2019s what the portion about \u201cbest fit (among all items with the same typename)\u201d means.<\/p>\n<p>This requires VS 2010 Beta2.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi again \u2013 Josh here, Toolbox developer. If you&#8217;ve created or installed a toolbox item, but it doesn&#8217;t appear in the toolbox when the appropriate designer is active, the first thing to do is select &#8220;Show All&#8221; from the toolbox and check to see if the item is there at all.&nbsp; (The new search feature [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":255385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[],"class_list":["post-2843","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio"],"acf":[],"blog_post_summary":"<p>Hi again \u2013 Josh here, Toolbox developer. If you&#8217;ve created or installed a toolbox item, but it doesn&#8217;t appear in the toolbox when the appropriate designer is active, the first thing to do is select &#8220;Show All&#8221; from the toolbox and check to see if the item is there at all.&nbsp; (The new search feature [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/2843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=2843"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/2843\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/255385"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=2843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=2843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=2843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}