Auto Resize form elements

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jkwok
    New Member
    • Feb 2008
    • 32

    #1

    Auto Resize form elements

    Hi,

    I have a form with two rich text boxes and two buttons. Some of the users want to be able to maximize and/or resize the form and have the rich text boxes resize to fit and the buttons always stay close to the right side border.

    Any tips on how I could do this? Maximizing and resizing have already been enabled. The effect now is that when you resize smaller, the text boxes and buttons go out of sight (depending on which side you resize from). If you maximize or resize larger, they don't change at all.

    Thanks,
    Jason
  • lotus18
    Contributor
    • Nov 2007
    • 865

    #2
    Hi

    If you are using vb .net, you can simply set the anchor property of each control tp define the edges of the container.

    In vb 6.0 you can also do this under the form's resize event.

    Rey Sean

    Comment

    • jkwok
      New Member
      • Feb 2008
      • 32

      #3
      Hi,

      Setting the anchors worked perfectly! Thank you so much for your help!

      Thanks,
      Jason

      Comment

      • lotus18
        Contributor
        • Nov 2007
        • 865

        #4
        Originally posted by jkwok
        Hi,

        Setting the anchors worked perfectly! Thank you so much for your help!

        Thanks,
        Jason
        Glad we could help


        Rey Sean

        Comment

        Working...