Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Weird Behaviour - Menu Editor

Weird Behaviour - Menu Editor

Scheduled Pinned Locked Moved Visual Studio
helpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mbryga
    wrote on last edited by
    #1

    :confused: 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. I know I'm not supposed to add code to InitializeComponent() - All that is in there is a call to my own routine InteranalInitialize() where I've put my hand coded menus. However, the problem existed before I resorted to hand coding the menus - that was my work around. The end result is I hand code my menus and occasionally have to re-adjust the form height as a result of this shrinkage. The problem remains - I can't edit menus and everytime I try to access a menu the form shrinks. Any ideas anyone? With or without my hand coded menus the problems remain.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups