<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://devpinoy.org/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>jokiz : bug</title><link>http://devpinoy.org/blogs/joeycalisay/archive/tags/bug/default.aspx</link><description>Tags: bug</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><item><title>"Subscript out of range" error when enumerating pagebreaks in Excel</title><link>http://devpinoy.org/blogs/joeycalisay/archive/2007/05/08/quot-subscript-out-of-range-quot-error-when-enumerating-pagebreaks-in-excel.aspx</link><pubDate>Tue, 08 May 2007 03:45:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:9510</guid><dc:creator>jokiz</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/rsscomments.aspx?PostID=9510</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/commentapi.aspx?PostID=9510</wfw:comment><comments>http://devpinoy.org/blogs/joeycalisay/archive/2007/05/08/quot-subscript-out-of-range-quot-error-when-enumerating-pagebreaks-in-excel.aspx#comments</comments><description>&lt;p&gt;I had an issue yesterday with my previous Excel VBA project where the user is experiencing the very common:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;font color="#ff0000"&gt;&lt;b&gt;Run-time error &amp;#39;9&amp;#39;:&lt;br /&gt;Subscript out of range&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Surprisingly, i found out that the said exception was being raised on a foreach construct for the pagebreak collection specifically when it hit the following line:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;font color="#ff0000"&gt;For Each verticalPageBreak In aWorksheet.VPageBreaks&lt;/font&gt;&lt;br /&gt;&amp;nbsp; columnIndex = verticalPageBreak.Location.Column&lt;br /&gt;&amp;nbsp;&amp;nbsp;....&lt;br /&gt;Next&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;I was scratching my head, why the hell would a foreach construct raise a subscript out of range exception!&amp;nbsp; As usual, i did a research on usenet, because for scenarios like this, i&amp;#39;m sure there&amp;#39;s another guy who had previously bumped into the said issue, i found one &lt;a href="http://groups.google.com/group/microsoft.public.excel.programming/browse_thread/thread/5da0b61fdc9dbcba/afdc788e056de27e?lnk=gst&amp;amp;q=%2B%22subscript+out+of+range%22+foreach+pagebreak&amp;amp;rnum=2#"&gt;here&lt;/a&gt;.&amp;nbsp; &lt;/p&gt; &lt;p&gt;Turns out that the pagebreaks collection in Excel is buggy.&amp;nbsp; This was illustrated by a known bug in excel found in this &lt;a href="http://support.microsoft.com/kb/210663"&gt;Knowledge Base&lt;/a&gt;.&amp;nbsp; I tried doing the hacks proposed by the guys in the usenet post to no avail (and besides, i do not understand those SendKeys and the Excel4ForMacro workarounds).&lt;/p&gt; &lt;p&gt;My requirement was just to redefine valid vertical pagebreaks because i will be printing a long landscaped worksheet.&amp;nbsp; What&amp;#39;s weird is I also found out that the said exception is existing if i have a smaller screen resolution (1024x768 and below), however it is not encountered on computeres having a bigger resolution, this means cause #2 from the KB is the root of the problem.&lt;/p&gt; &lt;p&gt;However, selecting the rightmost used cell&amp;nbsp; as suggested by the KB did not solve the problem.&amp;nbsp; Luckily i found my own hack by having the ActiveWindow ScrollColumn set to be the last used column before doing the vertical page break iteration.&amp;nbsp; Issue closed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=9510" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/bug/default.aspx">bug</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/excel/default.aspx">excel</category></item><item><title>Cannot empty clipboard from excel</title><link>http://devpinoy.org/blogs/joeycalisay/archive/2007/01/08/cannot-empty-clipboard-from-excel.aspx</link><pubDate>Mon, 08 Jan 2007 05:28:45 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:7553</guid><dc:creator>jokiz</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/rsscomments.aspx?PostID=7553</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/commentapi.aspx?PostID=7553</wfw:comment><comments>http://devpinoy.org/blogs/joeycalisay/archive/2007/01/08/cannot-empty-clipboard-from-excel.aspx#comments</comments><description>&lt;p&gt;I experience the cannot empty clipboard error message today again which i encountered last year:&lt;/p&gt; &lt;p&gt;&lt;a href="http://devpinoy.org/blogs/joeycalisay/WindowsLiveWriter/Cannotemptyclipboardfromexcel_E7A3/image%7B0%7D%5B1%5D.png"&gt;&lt;img style="border-right:0px;border-top:0px;border-left:0px;border-bottom:0px;" height="123" src="http://devpinoy.org/blogs/joeycalisay/WindowsLiveWriter/Cannotemptyclipboardfromexcel_E7A3/image%7B0%7D.png" width="240" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;I did a search and found &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;840872"&gt;this&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=7553" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/bug/default.aspx">bug</category></item><item><title>designtime visual inheritance bug for new .NET 2.0 controls</title><link>http://devpinoy.org/blogs/joeycalisay/archive/2006/08/23/designtime-isual-inheritance-bug-for-new-.NET-2.0-controls.aspx</link><pubDate>Wed, 23 Aug 2006 08:27:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:4467</guid><dc:creator>jokiz</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/rsscomments.aspx?PostID=4467</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/commentapi.aspx?PostID=4467</wfw:comment><comments>http://devpinoy.org/blogs/joeycalisay/archive/2006/08/23/designtime-isual-inheritance-bug-for-new-.NET-2.0-controls.aspx#comments</comments><description>i just found out a bug on visual inheritance concerning the new controls in .NET 2.0.&amp;nbsp;&amp;nbsp; Basically it says that if you have an inherited control (non-private), designer won't allow you to "design it" in the child form (they're locked).&amp;nbsp; more info &lt;A href="http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=115264"&gt;here&lt;/A&gt;.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=4467" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/.NET/default.aspx">.NET</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/visual+studio/default.aspx">visual studio</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/bug/default.aspx">bug</category></item><item><title>systray icon tooltips behind taskbar</title><link>http://devpinoy.org/blogs/joeycalisay/archive/2006/05/10/systray-icon-tooltips-behind-taskbar.aspx</link><pubDate>Wed, 10 May 2006 08:01:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:2996</guid><dc:creator>jokiz</dc:creator><slash:comments>7</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/rsscomments.aspx?PostID=2996</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/commentapi.aspx?PostID=2996</wfw:comment><comments>http://devpinoy.org/blogs/joeycalisay/archive/2006/05/10/systray-icon-tooltips-behind-taskbar.aspx#comments</comments><description>once in a while, i notice that the tooltips of my icons are behind the taskbar which is rather annoying.&amp;nbsp; i finally did a google today and found this tip:&lt;br&gt;&lt;br&gt;&lt;a href="http://www.tech-pro.net/howto_018.html"&gt;How To:
        Fix Tooltips hide behind taskbar&lt;/a&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=2996" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/tips/default.aspx">tips</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/bug/default.aspx">bug</category></item><item><title>vs 2003 bug with embedded resources</title><link>http://devpinoy.org/blogs/joeycalisay/archive/2006/03/29/vs-2003-bug-with-embedded-resources.aspx</link><pubDate>Tue, 28 Mar 2006 23:22:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:2453</guid><dc:creator>jokiz</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/rsscomments.aspx?PostID=2453</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/commentapi.aspx?PostID=2453</wfw:comment><comments>http://devpinoy.org/blogs/joeycalisay/archive/2006/03/29/vs-2003-bug-with-embedded-resources.aspx#comments</comments><description>&lt;P&gt;an officemate of mine got this problem wherein he had specified already the mapping xml files for nhibernate but when he tries to debug it, it was not able to load the said mapping files.&amp;nbsp; turns out he found a bug in vs 2003 that i should have found out months ago.&lt;/P&gt;
&lt;P&gt;visual studio 2003 does not detect changes to files configured as embedded resource so if these are the only files that you edited and you do a build (build does a rebuild if vs has detected a change by the way), &lt;BR&gt;your assembly will not be updated since vs did not detect any change.&lt;/P&gt;
&lt;P&gt;i had this problem in my last project when i just edited the strings in a resx file and did not see the changes reflected when i do an f5-run.&amp;nbsp; it's a mess because i ended up restarting the IDE since i could not figure out the problem then.&lt;/P&gt;
&lt;P&gt;problem is i could not find a single kb about this and all i can find in usenet is it is a known bug.&amp;nbsp; good thing the nhibernate docs has this bug cited in their documentation.&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=2453" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/.NET/default.aspx">.NET</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/visual+studio/default.aspx">visual studio</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/bug/default.aspx">bug</category></item><item><title>VS AuthoHide window bug</title><link>http://devpinoy.org/blogs/joeycalisay/archive/2005/08/04/VS-AuthoHide-window-bug.aspx</link><pubDate>Thu, 04 Aug 2005 10:47:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:304</guid><dc:creator>jokiz</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/rsscomments.aspx?PostID=304</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/commentapi.aspx?PostID=304</wfw:comment><comments>http://devpinoy.org/blogs/joeycalisay/archive/2005/08/04/VS-AuthoHide-window-bug.aspx#comments</comments><description>&lt;P&gt;One innovation I love most with with Visual Studio is their &lt;STRONG&gt;AutoHide&lt;/STRONG&gt; windows.&amp;nbsp; I always configure every window (server explorer, debug windows, etc.) to be AutoHide to maximize my code view (eventhough I have a 1280 x 1024 resolution at font size 8).&lt;/P&gt;
&lt;P&gt;The only problem with the said feature is its bug.&amp;nbsp; There is a known AuthoHide window bug for Visual Studio .NET wherein they sometimes mess up especially for add-ins.&amp;nbsp; When they mess up, window becomes not functional.&lt;/P&gt;
&lt;P&gt;Jetbrains Refactor has an issue with their Find Results window &lt;A href="http://www.intellij.net/forums/thread.jsp?forum=59&amp;amp;thread=144615&amp;amp;tstart=15&amp;amp;trange=15"&gt;&lt;STRONG&gt;&lt;FONT color=#006629&gt;here&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;The thing I hate most is its conflict with VSS Pending Checkins.&amp;nbsp; I am the type of guy who only wants the minimum window open so I rarely use Enterprise Manger or Query Analyzer.&amp;nbsp; I use all the tools in VS and when Pending Checkins window messes up, I couldn’t do anything but restart devenv.exe.&amp;nbsp; As they say, it’s a real &lt;STRONG&gt;PITA&lt;/STRONG&gt;.&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=304" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/.NET/default.aspx">.NET</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/visual+studio/default.aspx">visual studio</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/bug/default.aspx">bug</category></item><item><title>Intellisense vs Shadowed functions</title><link>http://devpinoy.org/blogs/joeycalisay/archive/2005/07/26/Intellisense-vs-Shadowed-functions.aspx</link><pubDate>Tue, 26 Jul 2005 07:42:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:309</guid><dc:creator>jokiz</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/rsscomments.aspx?PostID=309</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/commentapi.aspx?PostID=309</wfw:comment><comments>http://devpinoy.org/blogs/joeycalisay/archive/2005/07/26/Intellisense-vs-Shadowed-functions.aspx#comments</comments><description>&lt;P&gt;&lt;SPAN&gt;&lt;FONT size=2&gt;How come Visual Studio intellisense could not resolve shadowed/newed functions, they are still showing the “shadowed” functions.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=309" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/.NET/default.aspx">.NET</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/visual+studio/default.aspx">visual studio</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/intellisense/default.aspx">intellisense</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/bug/default.aspx">bug</category></item><item><title>Pending Checkins Window</title><link>http://devpinoy.org/blogs/joeycalisay/archive/2005/06/21/Pending-Checkins-Window.aspx</link><pubDate>Tue, 21 Jun 2005 06:32:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:3678</guid><dc:creator>jokiz</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/rsscomments.aspx?PostID=3678</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/commentapi.aspx?PostID=3678</wfw:comment><comments>http://devpinoy.org/blogs/joeycalisay/archive/2005/06/21/Pending-Checkins-Window.aspx#comments</comments><description>&lt;span id="BlogViewId"&gt;&lt;p&gt;I always use the "Pending Checkins" window
once in a while so I've assigned a shortcut for it.&amp;nbsp; One feature that I
would want with VSS and VS integration is the ability to browse the
code sheet of an item from the said window.&lt;/p&gt;
&lt;p&gt;Anyways, checkout the bug that I encountered with the said window...&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;&lt;hr&gt;

&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;/span&gt;
&lt;img src="http://static.flickr.com/65/174557227_42e30e0c97.jpg?v=0"&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=3678" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/.NET/default.aspx">.NET</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/bug/default.aspx">bug</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/sourcesafe/default.aspx">sourcesafe</category></item><item><title>Talk about a breaking change</title><link>http://devpinoy.org/blogs/joeycalisay/archive/2005/05/03/Talk-about-a-breaking-change.aspx</link><pubDate>Tue, 03 May 2005 06:27:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:3666</guid><dc:creator>jokiz</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/rsscomments.aspx?PostID=3666</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/commentapi.aspx?PostID=3666</wfw:comment><comments>http://devpinoy.org/blogs/joeycalisay/archive/2005/05/03/Talk-about-a-breaking-change.aspx#comments</comments><description>&lt;span id="BlogViewId"&gt;Last time, I reported a &lt;a href="http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.aspx?feedbackid=f1ef4a3f-ad34-4dd2-8807-ee1ea1080b58"&gt;bug&lt;/a&gt;
on the ToolBar control of Windows Forms which I have discovered upon a
query of an officemate.&amp;nbsp; I just saw that there is an update on my
reported bug as &lt;b&gt;Won’t Fix &lt;/b&gt;due to a breaking change, :p.&lt;/span&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=3666" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/.NET/default.aspx">.NET</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/windows+forms/default.aspx">windows forms</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/bug/default.aspx">bug</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/controls/default.aspx">controls</category></item><item><title>Nested SWITCH statements in VS</title><link>http://devpinoy.org/blogs/joeycalisay/archive/2005/03/11/Nested-SWITCH-statements-in-VS.aspx</link><pubDate>Fri, 11 Mar 2005 07:22:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:3652</guid><dc:creator>jokiz</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/rsscomments.aspx?PostID=3652</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/commentapi.aspx?PostID=3652</wfw:comment><comments>http://devpinoy.org/blogs/joeycalisay/archive/2005/03/11/Nested-SWITCH-statements-in-VS.aspx#comments</comments><description>Have you tried doing a nested switch statements in Visual Studio.&amp;nbsp; I have tried this and VS is somewhat altering the proper indents.&amp;nbsp; I couldn’t find any flaw on using nested switch statements but the behavior is intriguing.&amp;nbsp; Below are some screenshots:&lt;br&gt;&lt;br&gt;
&lt;img src="http://static.flickr.com/72/174524841_445089622e.jpg?v=0"&gt;
&lt;img src="http://static.flickr.com/57/174524842_ace64775fc.jpg?v=0"&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=3652" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/.NET/default.aspx">.NET</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/visual+studio/default.aspx">visual studio</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/bug/default.aspx">bug</category></item><item><title>ToolBar.DropDownArrows property is flawed </title><link>http://devpinoy.org/blogs/joeycalisay/archive/2005/02/17/ToolBar.DropDownArrows-property-is-flawed-.aspx</link><pubDate>Thu, 17 Feb 2005 15:22:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:32</guid><dc:creator>jokiz</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/rsscomments.aspx?PostID=32</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/joeycalisay/commentapi.aspx?PostID=32</wfw:comment><comments>http://devpinoy.org/blogs/joeycalisay/archive/2005/02/17/ToolBar.DropDownArrows-property-is-flawed-.aspx#comments</comments><description>&lt;P&gt;An officemate of mine could not disable the DropDownArrows for the DropDownButton style ToolBarButton.&amp;nbsp; After trying it out and using Reflector, I found out that the default value for the DropDownArrows property of the .NET ToolBar is not properly configured.&amp;nbsp; The DefaultValue of the said property is FALSE while the initialized value is set to TRUE.&amp;nbsp; It is a rule in .NET to always synchronize the two values.&lt;/P&gt;
&lt;P&gt;Steps to Reproduce:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Drag a ToolBar control to a form. (You'll notice that the DropDownArrows property is already set to TRUE, bold signifying a a non-default value)&lt;/LI&gt;
&lt;LI&gt;Add some buttons to its button collection.&lt;/LI&gt;
&lt;LI&gt;Configure one of the toolbarbutton to be DropDownButton Style&lt;/LI&gt;
&lt;LI&gt;Set the ToolBar's DropDownArrows property to FALSE&lt;/LI&gt;
&lt;LI&gt;At designtime, you will not see the DropDownArrows.&amp;nbsp; Hit F5 (run) to see the inconsistency.&lt;BR&gt;&amp;nbsp;&lt;BR&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=32" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/.NET/default.aspx">.NET</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/windows+forms/default.aspx">windows forms</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/bug/default.aspx">bug</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/toolbar/default.aspx">toolbar</category></item><item><title>Undo feature bug of VS2003 </title><link>http://devpinoy.org/blogs/joeycalisay/archive/2005/02/03/Undo-feature-bug-of-VS2003-.aspx</link><pubDate>Wed, 02 Feb 2005 22:11:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:29</guid><dc:creator>jokiz</dc:creator><slash:comments>1</slash:comments><description>&lt;ol&gt;
&lt;li&gt;Create a form with anchored controls.&amp;nbsp; (Not just the default Top | Left) &lt;/li&gt;
&lt;li&gt;Resize the form&lt;/li&gt;
&lt;li&gt;Hit Undo (Ctrl-Z), voila!&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;The &lt;strong&gt;Undo&lt;/strong&gt; feature at design time is handled by the &lt;strong&gt;Windows Forms Designer&lt;/strong&gt; and the said functionality is one of the complex implementations in .NET that I am still unfamiliar with up to this time (I still don&amp;rsquo;t have time to analyze it fully).&amp;nbsp; If ever you are using Anchoring on a form, you can&amp;rsquo;t just undo a &lt;em&gt;Form Resize&lt;/em&gt; operation because the Anchored controls will not go back to its previous state.&amp;nbsp; Anchoring and Docking are two of the powerful features of Visual Studio but if you are not aware of this behavior for Anchoring, your design-time experience will be&amp;nbsp;f%&amp;amp;($!^d up.&lt;/p&gt;
&lt;p&gt;If ever this scenario happens, you can just close the Form and not save your changes but what if you have already applied a number of changes before you undo a form resize with anchored controls, then it&amp;rsquo;s annoying.&amp;nbsp; Of course you can just delete the generated Layout properties of the Anchored controls but it&amp;rsquo;s not practical if you have a number of them and its not even a good practice to edit the InitializeComponent method.&lt;/p&gt;
&lt;p&gt;There is a bug post of this at the &lt;a href="http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=e281bb0b-7f63-46cb-859d-c83fcd4374ca"&gt;Product Feedback Center &lt;/a&gt;and MS says that this has been fixed in version 2.0.&amp;nbsp; How come MS didn&amp;rsquo;t include this in their last Service Pack 1 release?&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=29" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/.NET/default.aspx">.NET</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/visual+studio/default.aspx">visual studio</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/designer/default.aspx">designer</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/undo/default.aspx">undo</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/bug/default.aspx">bug</category><category domain="http://devpinoy.org/blogs/joeycalisay/archive/tags/anchoring/default.aspx">anchoring</category></item></channel></rss>