{"id":3273,"date":"2005-04-19T12:40:54","date_gmt":"2005-04-19T12:40:54","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/heaths\/2005\/04\/19\/themes-fixed-in-net-framework-2-0-beta-2\/"},"modified":"2005-04-19T12:40:54","modified_gmt":"2005-04-19T12:40:54","slug":"themes-fixed-in-net-framework-2-0-beta-2","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/setup\/themes-fixed-in-net-framework-2-0-beta-2\/","title":{"rendered":"Themes Fixed in .NET Framework 2.0 Beta 2"},"content":{"rendered":"<p>Surely by now you&#8217;ve seen the news on the <a href=\"http:\/\/blogs.msdn.com\/\">Blogs.msdn.com<\/a> homepage that both .NET Framework 2.0 Beta 2 and Visual Studio 2005 Beta 2 (both also known as &#8220;Whidbey Beta 2&#8221;) have been <a href=\"http:\/\/lab.msdn.microsoft.com\/vs2005\/\">released<\/a>, so I won&#8217;t mention it. \ud83d\ude09<\/p>\n<p>I do want to share, however, after having written an article a long time ago entitled <a href=\"http:\/\/www.codeproject.com\/csharp\/dotnetvisualstyles.asp\">Windows XP Visual Styles for Windows Forms<\/a><sup>1<\/sup>, that themes have been fixed for both <font face=\"Courier New\">TabPage<\/font> and <font face=\"Courier New\">GroupBox<\/font> classes. Previously, the container portion of a <font face=\"Courier New\">TabPage<\/font> did not &#8220;inherit&#8221; the theme applied to the <font face=\"Courier New\">TabPage<\/font>, and a <font face=\"Courier New\">GroupBox<\/font> within a <font face=\"Courier New\">TabPage<\/font> lead to its child controls not being drawn using theme data. Many people went to a lot of work to <a href=\"http:\/\/pinvoke.net\/\">P\/Invoke<\/a> the Theme APIs to fix this, and complicated scenarios often arose.<\/p>\n<p>The bug that required a call to <font face=\"Courier New\">Application.DoEvents()<\/font> has also been fixed so that you can simply call <font face=\"Courier New\">Application.EnableVisualStyles()<\/font> and <font face=\"Courier New\">Application.Run()<\/font> in succession.<\/p>\n<p><font size=\"1\"><sup>1<\/sup>Please note that the original article was written and published before 1.1 was released, so the technique may be obsolete but still presents an alternative to supporting Themes for pre-1.1 installations.<\/font><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Surely by now you&#8217;ve seen the news on the Blogs.msdn.com homepage that both .NET Framework 2.0 Beta 2 and Visual Studio 2005 Beta 2 (both also known as &#8220;Whidbey Beta 2&#8221;) have been released, so I won&#8217;t mention it. \ud83d\ude09 I do want to share, however, after having written an article a long time ago [&hellip;]<\/p>\n","protected":false},"author":389,"featured_media":3843,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[14],"class_list":["post-3273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-development"],"acf":[],"blog_post_summary":"<p>Surely by now you&#8217;ve seen the news on the Blogs.msdn.com homepage that both .NET Framework 2.0 Beta 2 and Visual Studio 2005 Beta 2 (both also known as &#8220;Whidbey Beta 2&#8221;) have been released, so I won&#8217;t mention it. \ud83d\ude09 I do want to share, however, after having written an article a long time ago [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts\/3273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/users\/389"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/comments?post=3273"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts\/3273\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/media\/3843"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/media?parent=3273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/categories?post=3273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/tags?post=3273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}