Results 1 to 5 of 5

Thread: Important

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Location
    Ghana
    Posts
    1

    Important

    Hello, i've got some controls on ma form and i want to apportion them so that they would all be equal in length, width and stuff like that. I don't want to select one and work on it and move to the next one, it has to be done at the same time. Thanks:confused

  2. #2
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    At design time you should be able to select as many of them as you want and set the Width property.

    At run time you could use a For Each loop.

    Which do you want to do?

    Tris.
    This world is not my home. I'm just passing through.

  3. #3
    Bouncy Member darre1's Avatar
    Join Date
    May 2001
    Location
    Peterborough, UK
    Posts
    3,828
    VB Code:
    1. lngWidth = command1.Width
    2. command2.Width = lngWidth
    3. command3.Width = lngWidth
    4. 'etc etc
    ???
    Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."

    Don't forget to format your code in your posts

  4. #4
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141
    At design time select as many controls as you would like and then select format from the menu bar. It will give you a lot of options about alignment, size and spacing. Keep in mind most of these options are based on the last control that you selected.

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    trisuglow and MarkT have it. When you select multiple controls,and click on properties, all of the properties these controls have in common will be presented. Changing something on the displayed property page will affect all selected controls.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width