CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Guest

    Add a button to the title bar?

    Does any one happens to know how to add a button to the title bar of a form?

    If you once used getright, there is a little dot button on the title bar (in addition to the min/max/close buttons). Is this possible in VB programming?

    Thanks in advance


  2. #2
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    Re: Add a button to the title bar?

    Yes it is posible, you can recreate the titlebar and place there as many buttons as you want, just set forms borderstyle to 0-none and add picture box, buttons for min/max/close and other stuff that you want. Make your own titlebar!!!!


  3. #3
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Add a button to the title bar?

    It is possible, but quite tricky (involves some deep subclassing routines). Matt Hart has an example at http://www.matthart.com


    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

  4. #4
    Join Date
    Feb 2000
    Posts
    1

    Re: Add a button to the title bar?

    Do you have the exact url for that example? I tried searching "titlebar", it does not show up.
    Thanks a lot!
    --Changzhou



  5. #5
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Add a button to the title bar?

    Using picture boxes? Well..., it could work on simple forms, but remember, creating your own titlebar like that means that you will have to write your own menu-system as well.

    Tom Cannaerts
    [email protected]
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  6. #6
    Join Date
    Sep 2000
    Location
    Orange County, California
    Posts
    65

    Re: Add a button to the title bar?

    hey, i found an really good example, click the url below:
    http://www.planet-source-code.com/up...9717972000.zip

    Rate the post!
    http://www.visualblind.com

  7. #7
    Join Date
    Mar 2000
    Location
    Calif
    Posts
    21

    Re: Add a button to the title bar?

    At Http://www.vbpj.com/ you can type in VBPJ0399BB in the "Locator" to download Matt Harts code for customizing titlebars.
    Article is in the March, 1999 issue of VBPJ, page 115.


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

Featured