vb.net - Form sent to back on interaction with menu item -


i've got 2 forms, 1 being frmmain , other being frmdatasets. idea frmdatasets used manage application's datasets (it's program comparing sorting algorithms). have menustrip on frmdatasets few items. decided change add dataset item drop-down menu options loading 1 file, or generating 1 according parameters. , good; add items, swap icons around, , change event handler's signature handle right click event.

except when run program, clicking on add datasets top-level item first time sends frmdatasets back, displaying inactive frmmain. clicking item again shows dropdown menu usual.

if instead click top-level menu item, works fine. hovering mouse on add dataset item causes 'send back' thing happen.

i "send back", it's putting behind frmmain. remains in front of other windows visual studio , firefox.

anyone know on earth going on form?

edit: if show frmdatasets modal dialog, stops whole "sending back" thing, still have click menu item twice before shows list.

edit2: overriding onclick event call mnuadddatasetdropdown.showdropdown removes double-click issue, it's solution if keep form modal dialog. still gets sent back. overriding mouseenter doesn't solve it.

setting topmost property of frmdatasets design view 'true' fixed of problems having. no insight going on, unfortunately, if else having problem it'll work them too.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -