Undo feature bug of VS2003

Published 02-03-2005 9:11 AM | jokiz
  1. Create a form with anchored controls.  (Not just the default Top | Left)
  2. Resize the form
  3. Hit Undo (Ctrl-Z), voila!

The Undo feature at design time is handled by the Windows Forms Designer 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’t have time to analyze it fully).  If ever you are using Anchoring on a form, you can’t just undo a Form Resize operation because the Anchored controls will not go back to its previous state.  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 f%&($!^d up.

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’s annoying.  Of course you can just delete the generated Layout properties of the Anchored controls but it’s not practical if you have a number of them and its not even a good practice to edit the InitializeComponent method.

There is a bug post of this at the Product Feedback Center and MS says that this has been fixed in version 2.0.  How come MS didn’t include this in their last Service Pack 1 release?
 

Comments

# jokiz's blog said on August 12, 2005 8:57 PM:

In relation to my previous post on Anchoring bugs, here is a follow up.  Most developer uses visual...