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. textbox size change!

textbox size change!

Scheduled Pinned Locked Moved C#
5 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
    Mazdak
    wrote on last edited by
    #1

    I have a form when I resize the form the size of two text box in it change ,but I don't want it(the others do not change) thanks Mazy You can find a solution (even a foolish one) for all problems (even big ones)

    J 1 Reply Last reply
    0
    • M Mazdak

      I have a form when I resize the form the size of two text box in it change ,but I don't want it(the others do not change) thanks Mazy You can find a solution (even a foolish one) for all problems (even big ones)

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      Look at the Anchor property on the two textboxes. When a form is resized it will resize so that those edges (specified by the Anchor property) are always the same distance from the edge of the container. HTH, James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002

      M 1 Reply Last reply
      0
      • J James T Johnson

        Look at the Anchor property on the two textboxes. When a form is resized it will resize so that those edges (specified by the Anchor property) are always the same distance from the edge of the container. HTH, James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002

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

        I examine different Anchors for these "Multiline TextBoxes" but each time they move or resize wrong and hide other controls in the form. Mazy You can find a solution (even a foolish one) for all problems (even big ones)

        J 1 Reply Last reply
        0
        • M Mazdak

          I examine different Anchors for these "Multiline TextBoxes" but each time they move or resize wrong and hide other controls in the form. Mazy You can find a solution (even a foolish one) for all problems (even big ones)

          J Offline
          J Offline
          James T Johnson
          wrote on last edited by
          #4

          To keep a control from moving, the Anchor property should be set to (AnchorStyles.Top | AnchorStyles.Left) This will ensure that the control remains the same distance from the left and from the top. HTH, James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002

          M 1 Reply Last reply
          0
          • J James T Johnson

            To keep a control from moving, the Anchor property should be set to (AnchorStyles.Top | AnchorStyles.Left) This will ensure that the control remains the same distance from the left and from the top. HTH, James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002

            M Offline
            M Offline
            Mazdak
            wrote on last edited by
            #5

            Thanks James,I found it :-D Mazy You can find a solution (even a foolish one) for all problems (even big ones)

            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