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. C#
  4. context menu in child form

context menu in child form

Scheduled Pinned Locked Moved C#
helptutorial
4 Posts 3 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.
  • F Offline
    F Offline
    faiznasi
    wrote on last edited by
    #1

    hai all, I am using one context menu in parent form, whereever i am clicking on the form ,the context menu is appearing, now, my problem is i am adding a child form in Mdi, child form contains one datagrid, if i am clicking on column header of datagrid ,a new context menu should display not the one in the parent form context menu. ya its coming,but again i am clicking whereever in the form(except coumn header) in child form, the parent form context menu is not appering, please help me how to do, i am new to programming field thanks in advance.. faizal

    ksf

    N 1 Reply Last reply
    0
    • F faiznasi

      hai all, I am using one context menu in parent form, whereever i am clicking on the form ,the context menu is appearing, now, my problem is i am adding a child form in Mdi, child form contains one datagrid, if i am clicking on column header of datagrid ,a new context menu should display not the one in the parent form context menu. ya its coming,but again i am clicking whereever in the form(except coumn header) in child form, the parent form context menu is not appering, please help me how to do, i am new to programming field thanks in advance.. faizal

      ksf

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      faiznasi wrote:

      the parent form context menu is not appering, please help me how to do, i am new to programming field

      I am not getting how you are expecting parent context menu to appear when clicking on child form ?

      All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

      F 1 Reply Last reply
      0
      • N N a v a n e e t h

        faiznasi wrote:

        the parent form context menu is not appering, please help me how to do, i am new to programming field

        I am not getting how you are expecting parent context menu to appear when clicking on child form ?

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

        F Offline
        F Offline
        faiznasi
        wrote on last edited by
        #3

        hai navaneeth, I created one context menu and added into a parent from(parentMdi) properties, after that i am adding one child form to that parent mdi page. (the child is loaded into parent form) where ever i am clicking the parent form context menu is apperring, but i need to hide the context menu if i am clicking datagrid column header of child form(for that, in mouse down evnt of datagrid in child form, i wrote a code, if it is column header ,i am making a static variable to 1 and pass that variable to parent child and making as invissble, ya its working) one i hitted in datagrid column header, the parent contextmenu is disappearing, now my problem is if i am again clicking on the form(the parent form context menu should appear) its not appering, i think now u r understod my problem,, please suggest me how to do thanks and regards faizal

        ksf

        N 1 Reply Last reply
        0
        • F faiznasi

          hai navaneeth, I created one context menu and added into a parent from(parentMdi) properties, after that i am adding one child form to that parent mdi page. (the child is loaded into parent form) where ever i am clicking the parent form context menu is apperring, but i need to hide the context menu if i am clicking datagrid column header of child form(for that, in mouse down evnt of datagrid in child form, i wrote a code, if it is column header ,i am making a static variable to 1 and pass that variable to parent child and making as invissble, ya its working) one i hitted in datagrid column header, the parent contextmenu is disappearing, now my problem is if i am again clicking on the form(the parent form context menu should appear) its not appering, i think now u r understod my problem,, please suggest me how to do thanks and regards faizal

          ksf

          N Offline
          N Offline
          netJP12L
          wrote on last edited by
          #4

          override the context menu to be display in the child form or set it to null if u don't want to display anything

          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