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. Control clipping issues

Control clipping issues

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

    I have a ListView sitting on an MDI tab (from the Magic library, if that makes a difference). If I set the tab's Dock property to DockStyle.Fill (and do the same with the ListView), the ListView control gets partially clipped by the status bar. I don't mind handing Resize events to keep things organized and prevent the clipping, but I'm wondering if there isn't a better way. Can the controls be told to size themselves correctly without an programmer intervention?

    F 1 Reply Last reply
    0
    • M m_mond

      I have a ListView sitting on an MDI tab (from the Magic library, if that makes a difference). If I set the tab's Dock property to DockStyle.Fill (and do the same with the ListView), the ListView control gets partially clipped by the status bar. I don't mind handing Resize events to keep things organized and prevent the clipping, but I'm wondering if there isn't a better way. Can the controls be told to size themselves correctly without an programmer intervention?

      F Offline
      F Offline
      Furty
      wrote on last edited by
      #2

      I can only assume that it's something to do with Magic's TabControl implementation, as I have done similar things with the standard TabControl without problem. One possible workaround would be to set the DockStyle of the ListView to None, size it to fill the TabPage in the designer, then set the Anchor property to all sides (Left, Right, Top, Bottom).

      M 1 Reply Last reply
      0
      • F Furty

        I can only assume that it's something to do with Magic's TabControl implementation, as I have done similar things with the standard TabControl without problem. One possible workaround would be to set the DockStyle of the ListView to None, size it to fill the TabPage in the designer, then set the Anchor property to all sides (Left, Right, Top, Bottom).

        M Offline
        M Offline
        m_mond
        wrote on last edited by
        #3

        That seems to work. Thanks, Furty.

        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