Results 1 to 5 of 5

Thread: Toolbar Buttons

  1. #1

    Thread Starter
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565

    Question

    I have a toolbar on my form with five buttons on it. Is there a way for me to be able to have the five buttons spread themselves equally across the whole toolbar, instead of the buttons appearing aligned to the left?

    If not is there another type of control I could use to do this?
    VB6 sp5, SQL Server 2000, C#

    There are no stupid questions. Only stupid people.

  2. #2
    Hyperactive Member
    Join Date
    Jul 2000
    Location
    Halifax,UK
    Posts
    274
    insert a new button between each button and make it a placeholder.

    in your program you will need to adjust the width of the place holder depending on the screen res.

    Toolbar1.Buttons(x).Width=...


    regards

    chris
    VB6 VS2005

  3. #3

    Thread Starter
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565
    Cheers, but I would like the buttons to take up the whole toolbar with no gaps.

    Any other ideas?
    VB6 sp5, SQL Server 2000, C#

    There are no stupid questions. Only stupid people.

  4. #4
    Hyperactive Member
    Join Date
    Jul 2000
    Location
    Halifax,UK
    Posts
    274
    The only way I can think of is to make the size of the images in the associated image box the width you require.

    Though this would require a different imagebox for each screen resolution.

    Regards

    Chris
    VB6 VS2005

  5. #5

    Thread Starter
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565
    Cheers, but I've gone the easy route and just placed 5 large buttons side by side. Not exactly what I wanted but it will do.
    VB6 sp5, SQL Server 2000, C#

    There are no stupid questions. Only stupid people.

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