G
Guest
I've got some really weird things happening with menus and the form designer,
which I assume are somehow inter-related. I am hoping someone has seen these
and figured out what they are;
1) Sometimes, when I drop a ManiMenu from the toolbox into the component
tray I get an "Invalid Cast" message box popping up. No other information is
available about what the problem is. This problem comes and goes.
2) If I do succeed in getting a ContextMenu or MainMenu into the component
tray, selecting it will cause the from to shrink by 20 units. The menu editor
simply doesn't work, and attempting to use it only results in the form
shrinking. Dropping additional ContextMenus or MainMenus into the component
tray does the same thing.
3) If I hand code the ContextMenus & MainMenus into InitializeComponent(),
everything works - for a while - then all the code gets deleted. I've
resorted to putting it in an InternalInitialize() that I call from the
destructors and everything works.
The end result is I hand code my menus and occasionally have to re-adjust
the form height as a result of this shrinkage.
which I assume are somehow inter-related. I am hoping someone has seen these
and figured out what they are;
1) Sometimes, when I drop a ManiMenu from the toolbox into the component
tray I get an "Invalid Cast" message box popping up. No other information is
available about what the problem is. This problem comes and goes.
2) If I do succeed in getting a ContextMenu or MainMenu into the component
tray, selecting it will cause the from to shrink by 20 units. The menu editor
simply doesn't work, and attempting to use it only results in the form
shrinking. Dropping additional ContextMenus or MainMenus into the component
tray does the same thing.
3) If I hand code the ContextMenus & MainMenus into InitializeComponent(),
everything works - for a while - then all the code gets deleted. I've
resorted to putting it in an InternalInitialize() that I call from the
destructors and everything works.
The end result is I hand code my menus and occasionally have to re-adjust
the form height as a result of this shrinkage.