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. Showing a Control underneath another Control

Showing a Control underneath another Control

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

    Hello all. I am interested in hiding a ListView Control underneath a TabControl. The ListView Control will contain say, 5 columns. When the user selects 1 of the tabs, I want to show the ListView and 3 columns (the other 2 will be hidden). When the user selects the other tab, I want to show the other 2 columns of the ListView. Is there a way to do this without creating two ListViews (1 for each Tab)? I have tried using all the Focus, Selected, and Show functionalities to the hidden ListView, but it will not appear over the TabControl. Thanks for the help.

    M 1 Reply Last reply
    0
    • S StyrofoamSUV

      Hello all. I am interested in hiding a ListView Control underneath a TabControl. The ListView Control will contain say, 5 columns. When the user selects 1 of the tabs, I want to show the ListView and 3 columns (the other 2 will be hidden). When the user selects the other tab, I want to show the other 2 columns of the ListView. Is there a way to do this without creating two ListViews (1 for each Tab)? I have tried using all the Focus, Selected, and Show functionalities to the hidden ListView, but it will not appear over the TabControl. Thanks for the help.

      M Offline
      M Offline
      MatthewAnderson
      wrote on last edited by
      #2

      A little unclear with what you are trying to do. Try using the BringToFront and SendToBack Functions if you are wanting to change the z-order of the form.

      S 1 Reply Last reply
      0
      • M MatthewAnderson

        A little unclear with what you are trying to do. Try using the BringToFront and SendToBack Functions if you are wanting to change the z-order of the form.

        S Offline
        S Offline
        StyrofoamSUV
        wrote on last edited by
        #3

        I believe this is exactly what I am looking for. Thanks for the help.

        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