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. button size srinks more in table layout panel

button size srinks more in table layout panel

Scheduled Pinned Locked Moved C#
questioncsharpdesign
4 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.
  • M Offline
    M Offline
    Maddie from Dartford
    wrote on last edited by
    #1

    Hello, I am using table layout panel so my C# application UI looks better even if we change screen resolution. My all controls are docked fill in different cells of tableLayoutPanel. I am 1280 by 1024 resolution to develop UI. If i change resolution to 800 by 600 then the size(height) of button reduces extremely and text also doesn't fit in button but the other controls like text box seems to be ok. How do i make sure that the button size reduces according to the parent control and also button text should be visible? Thanks in Advance.

    F N 2 Replies Last reply
    0
    • M Maddie from Dartford

      Hello, I am using table layout panel so my C# application UI looks better even if we change screen resolution. My all controls are docked fill in different cells of tableLayoutPanel. I am 1280 by 1024 resolution to develop UI. If i change resolution to 800 by 600 then the size(height) of button reduces extremely and text also doesn't fit in button but the other controls like text box seems to be ok. How do i make sure that the button size reduces according to the parent control and also button text should be visible? Thanks in Advance.

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

      Find the height and width of the button at its smallest possibly size where the text is still visible. Then write a simple script saying that it can't be smaller.

      hmmm pie

      1 Reply Last reply
      0
      • M Maddie from Dartford

        Hello, I am using table layout panel so my C# application UI looks better even if we change screen resolution. My all controls are docked fill in different cells of tableLayoutPanel. I am 1280 by 1024 resolution to develop UI. If i change resolution to 800 by 600 then the size(height) of button reduces extremely and text also doesn't fit in button but the other controls like text box seems to be ok. How do i make sure that the button size reduces according to the parent control and also button text should be visible? Thanks in Advance.

        N Offline
        N Offline
        Navneet Hegde
        wrote on last edited by
        #3

        Hi! Design your layout in 800 by 600 resolution. and then move to 1280 by 1024 Thanks

        Develop2Program & Program2Develop

        M 1 Reply Last reply
        0
        • N Navneet Hegde

          Hi! Design your layout in 800 by 600 resolution. and then move to 1280 by 1024 Thanks

          Develop2Program & Program2Develop

          M Offline
          M Offline
          Maddie from Dartford
          wrote on last edited by
          #4

          Thanks all. Designing in lower resolution works for me.

          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