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. how to hide a panel on child form, when child form loads?

how to hide a panel on child form, when child form loads?

Scheduled Pinned Locked Moved C#
questiontutorial
2 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.
  • S Offline
    S Offline
    Saira Tanwir
    wrote on last edited by
    #1

    hi i'm working in MDI, there is a Main Form with a button1 and a button2. There is a Child form containing Panel1.

    scenario 1
    when button1 is clicked, the Child form is opened displaying its Panel1.

    this scenario works fine

    scenario 2
    when Button2 is clicked, the Child form opens without displaying its Panel1.

    this scenario is not working, ,how do i make it work?? all suggestion will be appreciated:)

    A 1 Reply Last reply
    0
    • S Saira Tanwir

      hi i'm working in MDI, there is a Main Form with a button1 and a button2. There is a Child form containing Panel1.

      scenario 1
      when button1 is clicked, the Child form is opened displaying its Panel1.

      this scenario works fine

      scenario 2
      when Button2 is clicked, the Child form opens without displaying its Panel1.

      this scenario is not working, ,how do i make it work?? all suggestion will be appreciated:)

      A Offline
      A Offline
      Arun Immanuel
      wrote on last edited by
      #2

      Have a public method in Form2 which acceps a boolean argument. Pass either true or false to the function and make the Panel visible true or false respectively.

      Regards, Arun Kumar.A

      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