Results 1 to 2 of 2

Thread: Resize the form, Don't resize the command buttons - how to do?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Brunei
    Posts
    100
    Hi everyone,

    I got a wonderful idea from Karl Moore at

    http://vb-world.net/tips/tip489.html

    to resize the form and the controls.

    My problem is, i want the command buttons to remain in the same size, where as the other controls such as data grid changes the size.

    How can I do that?

    Your help is greatly wanted.

    Thank you.

    Rathi.J

  2. #2
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    Look for this in the code (it appears twice):
    Code:
    For Each Ctl In Me
        ' Something
    Next Ctl
    Change it (in both places) to:
    Code:
    For Each Ctl In Me
        If Not TypeOf Ctl Is CommandButton Then
            ' Something
        End If
    Next Ctl
    Enjoy!

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