ContextMenuStrip Bug??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bill Schanks

    ContextMenuStrip Bug??

    VB.NET 2005 SP1... I have two drop down items on a contextmenustip :

    DropDown1 (Enabled)
    DropDown2 (Disabled)

    If i hover over dropdown1 to see the items, and then hover over
    dropdown2 it will show the items and fire the dropdown event which can
    crash the app as I expect the dropdown event only to fire if the menu
    item is enabled.

    If I don't hover over DropDown1 first it behaves as expected. Is this
    a bug, or should I be doing something different?
  • Herfried K. Wagner [MVP]

    #2
    Re: ContextMenuStri p Bug??

    "Bill Schanks" <wschanks@gmail .comschrieb:
    VB.NET 2005 SP1... I have two drop down items on a contextmenustip :
    >
    DropDown1 (Enabled)
    DropDown2 (Disabled)
    >
    If i hover over dropdown1 to see the items, and then hover over
    dropdown2 it will show the items and fire the dropdown event which can
    crash the app as I expect the dropdown event only to fire if the menu
    item is enabled.
    What's the exact type of 'DropDown1' and 'DropDown2'? 'ToolStripMenuI tem'
    does not have a 'DropDown' event.

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

    Comment

    • kimiraikkonen

      #3
      Re: ContextMenuStri p Bug??

      On Jul 18, 5:08 pm, Bill Schanks <wscha...@gmail .comwrote:
      VB.NET 2005 SP1... I have two drop down items on a contextmenustip :
      >
      DropDown1 (Enabled)
      DropDown2 (Disabled)
      >
      If i hover over dropdown1 to see the items, and then hover over
      dropdown2 it will show the items and fire the dropdown event which can
      crash the app as I expect the dropdown event only to fire if the menu
      item is enabled.
      >
      If I don't hover over DropDown1 first it behaves as expected. Is this
      a bug, or should I be doing something different?
      Hi,
      Maybe DropDown1 is a ToolStripMenuIt em of your ContextMenuStri p
      control? And DropDown2 is child (sub) item of DropDown2? Those are may
      be the just names of ToolStripMenuIt em(s) based on my guess without
      specific information which is not given in your post.

      Thanks,

      Onur Güzel

      Comment

      • Bill Schanks

        #4
        Re: ContextMenuStri p Bug??

        It's a context menu strip.. On the toolbox under Menus & Toolbars, I
        drop the Context Menu strip on my form. It allows you to right click
        on a control (Datagridview, listbox, etc...)

        On Jul 18, 8:07 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-
        h...@gmx.atwrot e:
        "Bill Schanks" <wscha...@gmail .comschrieb:
        >
        VB.NET 2005 SP1... I have two drop down items on a contextmenustip :
        >
        DropDown1 (Enabled)
        DropDown2 (Disabled)
        >
        If i hover over dropdown1 to see the items, and then hover over
        dropdown2 it will show the items and fire the dropdown event which can
        crash the app as I expect the dropdown event only to fire if the menu
        item is enabled.
        >
        What's the exact type of 'DropDown1' and 'DropDown2'? 'ToolStripMenuI tem'
        does not have a 'DropDown' event.
        >
        --
         M S   Herfried K. Wagner
        M V P  <URL:http://dotnet.mvps.org/>
         V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>

        Comment

        Working...