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 remove Panel Border?

How to remove Panel Border?

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

    I have a user control that inherited from Panel. I want to remove the dotted boder that the panel paints. The base.OnPaint is not called so how exaclty do I remove the Panel border? Thanks

    G M 2 Replies Last reply
    0
    • C cnich23

      I have a user control that inherited from Panel. I want to remove the dotted boder that the panel paints. The base.OnPaint is not called so how exaclty do I remove the Panel border? Thanks

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      The panels I use doesn't draw a dotted border. Are you sure that it's not just the designer that draws the border? --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • C cnich23

        I have a user control that inherited from Panel. I want to remove the dotted boder that the panel paints. The base.OnPaint is not called so how exaclty do I remove the Panel border? Thanks

        M Offline
        M Offline
        Mitchell D Geere
        wrote on last edited by
        #3

        Does it show border while in the IDE or when running the application? If it is while in the IDE then dont worry about that the IDE draws that. If you are running the application then I would like to know the Panel you are inheriting from is it part of the Windows.Forms library or you own? As far as I know Panels do not ever have a dotted border unless you put it there. Mitchell Geere

        C 1 Reply Last reply
        0
        • M Mitchell D Geere

          Does it show border while in the IDE or when running the application? If it is while in the IDE then dont worry about that the IDE draws that. If you are running the application then I would like to know the Panel you are inheriting from is it part of the Windows.Forms library or you own? As far as I know Panels do not ever have a dotted border unless you put it there. Mitchell Geere

          C Offline
          C Offline
          cnich23
          wrote on last edited by
          #4

          The border only shows up in design-time. I created a control that inhertied from the panel though I do not want the dotted border in design time.

          C 1 Reply Last reply
          0
          • C cnich23

            The border only shows up in design-time. I created a control that inhertied from the panel though I do not want the dotted border in design time.

            C Offline
            C Offline
            cnich23
            wrote on last edited by
            #5

            Nm my dumbness just need to add a desingner and override onpaintadorments

            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