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. Hiding a control

Hiding a control

Scheduled Pinned Locked Moved C#
question
7 Posts 5 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.
  • J Offline
    J Offline
    joshp1217
    wrote on last edited by
    #1

    Without Using Visible how can you hide a user control?

    R A 2 Replies Last reply
    0
    • J joshp1217

      Without Using Visible how can you hide a user control?

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      Move it offscreen or set its size to (0,0). /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

      J 1 Reply Last reply
      0
      • R Ravi Bhavnani

        Move it offscreen or set its size to (0,0). /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

        J Offline
        J Offline
        joshp1217
        wrote on last edited by
        #3

        Moving the control offscreen? How is this done?

        R J 2 Replies Last reply
        0
        • J joshp1217

          Moving the control offscreen? How is this done?

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          Change its Location property. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

          1 Reply Last reply
          0
          • J joshp1217

            Moving the control offscreen? How is this done?

            J Offline
            J Offline
            Jun Du
            wrote on last edited by
            #5

            Set a location (x, y) beyond the screen. Lets say, if your screen is 1280x1024, set (x, y) to (1600, 0). Best, Jun

            C 1 Reply Last reply
            0
            • J Jun Du

              Set a location (x, y) beyond the screen. Lets say, if your screen is 1280x1024, set (x, y) to (1600, 0). Best, Jun

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              But check the Screens property as well, you may be moving it onto the second monitor. Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

              1 Reply Last reply
              0
              • J joshp1217

                Without Using Visible how can you hide a user control?

                A Offline
                A Offline
                Andrew Lygin
                wrote on last edited by
                #7

                MyControl.Parent = null;

                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