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. Making the panel invisible??

Making the panel invisible??

Scheduled Pinned Locked Moved C#
tutorialquestion
3 Posts 2 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.
  • V Offline
    V Offline
    VPMahank
    wrote on last edited by
    #1

    I have a list of buttons in the panel( one below the other. Just like a dropdowm menu). It is invisible by default. I have a button on the form. When I click the button on the form, I show the panel just below the button. Now when I click anywhere on the form other than the panel and buttons inside the panel, the panel should become invisible. Any ideas on how to achive this would be very much appreciated. Thanks, VPMahank.

    C 1 Reply Last reply
    0
    • V VPMahank

      I have a list of buttons in the panel( one below the other. Just like a dropdowm menu). It is invisible by default. I have a button on the form. When I click the button on the form, I show the panel just below the button. Now when I click anywhere on the form other than the panel and buttons inside the panel, the panel should become invisible. Any ideas on how to achive this would be very much appreciated. Thanks, VPMahank.

      C Offline
      C Offline
      CWIZO
      wrote on last edited by
      #2

      Just set the Visibility property to false in te Click evnet of a form... Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

      V 1 Reply Last reply
      0
      • C CWIZO

        Just set the Visibility property to false in te Click evnet of a form... Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

        V Offline
        V Offline
        VPMahank
        wrote on last edited by
        #3

        Yes, I totally understand. But if there are a bunch of controls in the form, lets say there are a few labels on the form, the visibility property of the panel has to be set on click event of each label. I cannot just handle it in the Click event of the form. I need to have a generic way of doing this. :confused: Thanks, VPMahank

        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