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
Printable View
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
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!!!!
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
Do you have the exact url for that example? I tried searching "titlebar", it does not show up.
Thanks a lot!
--Changzhou
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]
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
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.