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. Windows Forms
  4. Multiple Context Menu visibility issue

Multiple Context Menu visibility issue

Scheduled Pinned Locked Moved Windows Forms
helpdesignquestion
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.
  • T Offline
    T Offline
    TyrionTheImp
    wrote on last edited by
    #1

    Hi All, Just came across a strange issue recently. Maybe its a bug in the framework or something ? I have 2 processes running , each with its own winform UI, say host application and external application. The host application has a user control and a context menu defined for that user control, plus some blank panels. The external application also has a user control and context menu defined on it. Now lets say do a SetParent across processes(i know, i know but that`s what the applications must do right now), with the host process` panel as the parent handle, and the external application`s user control is made its child window, then the context menu`s show unusual behavior i.e we can have both their context menus visible simultaneously ! I`m using the contextmenustrip class of dot net 2.0 and this issue doesn`t seem to occur for the older 1.1 context menu classes (in the same scenario). Is this a known issue with the newer 2.0 class ? Are there any workarounds to rectify this behavior ? Is there any way I can get to know the context menu started, closed events across processes if required? Any help is most appreciated. Thanks in advance.

    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