SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

unhandled exception while creating an menu item

Last post 10-16-2006 9:08 PM by Except9ion. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-30-2006 1:32 PM

    unhandled exception while creating an menu item

    exception occurs while editing an menu text on a sub menu and pressing then down key.

    mfg except9ion


    SharpDevelop Version : 2.1.0.1825
    .NET Version         : 2.0.50727.42
    OS Version           : Microsoft Windows NT 5.1.2600 Service Pack 2
    Current culture      : German (Germany) (de-DE)
    Working Set Memory   : 21484kb
    GC Heap Memory       : 25474kb

    Exception thrown:
    System.ArgumentOutOfRangeException: Der Index lag außerhalb des Bereichs. Er muss nicht negativ und kleiner als die Auflistung sein.
    Parametername: index
       bei System.Collections.ArrayList.get_Item(Int32 index)
       bei System.Windows.Forms.ToolStripItemCollection.get_Item(Int32 index)
       bei System.Windows.Forms.Design.ToolStripMenuItemDesigner.CommitEdit(Type type, String text, Boolean commit, Boolean enterKeyPressed, Boolean tabKeyPressed)
       bei System.Windows.Forms.Design.ToolStripTemplateNode.CommitEditor(Boolean commit, Boolean enterKeyPressed, Boolean tabKeyPressed)
       bei System.Windows.Forms.Design.ToolStripTemplateNode.Commit(Boolean enterKeyPressed, Boolean tabKeyPressed)
       bei System.Windows.Forms.Design.ToolStripTemplateNode.OnKeyUp(Object sender, KeyEventArgs e)
       bei System.Windows.Forms.KeyEventHandler.Invoke(Object sender, KeyEventArgs e)
       bei System.Windows.Forms.Control.OnKeyUp(KeyEventArgs e)
       bei System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
       bei System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
       bei System.Windows.Forms.Control.WmKeyChar(Message& m)
       bei System.Windows.Forms.Control.WndProc(Message& m)
       bei System.Windows.Forms.TextBoxBase.WndProc(Message& m)
       bei System.Windows.Forms.TextBox.WndProc(Message& m)
       bei System.Windows.Forms.Design.ToolStripTemplateNode.TemplateTextBox.WndProc(Message& m)
       bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)  

  • 10-07-2006 3:48 AM In reply to

    • asl
    • Top 10 Contributor
    • Joined on 12-14-2005
    • Posts 401

    Re: unhandled exception while creating an menu item

    That seems to be a .NET Framework bug.
    Can you give us a procedure to reproduce it?
  • 10-16-2006 9:08 PM In reply to

    Re: unhandled exception while creating an menu item

    1. Create a new Solution
    2. Add a menuStrip
    3. Create an Menu (e.g. Text : File)
    4. Create an MenuItem under the File Menu (e.g. Text : Item)
    5. Create an MenuItem as an Submenu under the Text Menu (e.g. Text : Subitem)
    6. Press the Cursor Down Key while Subitem still has the focus and the exception occurs.

    If you ignore the exception a new menuItem appears as a sibling from Item and not as a child from Item.

    I hope this will help to reproduce it.

    mfg except9ion

Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.