VistaMenu designer issues.

Greetings!

First and foremost, I want to thank you for developing VistaMenu. I was mortified when I saw Microsoft go the route they did with MenuStrip and ToolStrip as I consider myself a UI purist and like things consistent to the operating system the user is running the application on.

However, I've discovered a bit of a snag that I can't seem to figure out when using VistaMenu with the designer. I've tested this on multiple machines and always get the same result each time. It's easy to reproduce, but if for some reason it cant be, I will be glad to upload a project demoing the issue.

Essentially, when VistaMenu is placed on a form with a MainMenu, upon building the project when the designer is visible, the form literally shrinks in the amount of the MainMenu's height.

Steps to reproduce:1) Create new WinForms project2) Insert MainMenu Control; add some dummy menu items3) Insert VistaMenu component4) Build while form designer is visible

The result is the form shrinking during the build process. This will keep happening until the form is completely "minimized" vertically, or until I remove the VistaMenu component from the form, in which case it will no longer shrink.

I've not been able to deduce the reasoning for this, and have verified this happens in both Visual Studio 2008 and Visual Studio 2010. Any help as to why this happens would be greatly appreciated. It is mildly frustrating to deal with.

I see this from time to time - it's a bug with the Visual Studio Designer. It has nothing to do with the VistaMenu control. I've investigated it because it bugged me too.

My best piece of advice is to compile with the Designer window closed. Or report this bug to Microsoft. It's doubtful they'll have a fix out for the VS 2010 launch, but maybe a future service pack.

I do feel your pain, though.

What OS are you using? XP?

My primary development machine is Win7 64bit, however I tried it on WinXP 32bit.

As for a Microsoft Connect report; I think I will file that. I'm also doubtful it'll make it into 2010 but it would be nice to see it in a service pack or something. I get the error 100% of the time, and I've also noticed that it happens when I create a control that inherits from ToolStrip and use the derived control in the designer. Strange bug.

I thought I'd post an update on this in case someone else runs into this problem.

I found a trivial way to work around the bug with the IDE shrinking the form. All you have to do is create a new class and derive it from MainMenu, leaving the class empty and not overloading anything. Build the project, and instead of using MainMenu on the form, use your derived class instead. It will still work normally with VistaMenu and won't result in form shrinkage.

I did open an issue with Microsoft Connect and it was forwarded to whatever group is going to look at it. Though I haven't heard anything back in the way of an issue update since early April.