Is it possible to add a small button to the title bar of a form next to the Minimize, Maximize and Close buttons on the top righthand corner of the form.
If possible, how?
Want to add a type of help on/off button to the form.
Printable View
Is it possible to add a small button to the title bar of a form next to the Minimize, Maximize and Close buttons on the top righthand corner of the form.
If possible, how?
Want to add a type of help on/off button to the form.
Try sample project posted in this thread.
I was hoping there is a easy way to do this e.g. API call or OCX or something.
Drawing the button on the titlebar is going to be a problem when using on different OS as the title bar is different sizes, colors etc. on different OS.
What do you mean by different OS? Visual Basic can only run on a Windows OS.
You can always make your own Titlebar but it will require subclassing. If interested post back.
XP has a square button, Vista has a rectangular button. Can't remember what Windows 7 buttons looks like but when running VB6 in XP mode on Windows 7 the buttons are a smaller square button.
Wouldn't you think though that if you put a button on the titlebar it wouldn't matter how it appears on the different versions of Windows. It's the same as putting a button on the Form; it's going to take on different appearances anyway so why worry about how it will appear on the titlebar. If you make your own titlebar and buttons it will be a fixed appearance and that might not be what users of other versions expect or want.
Not 100% sure but I think the title bars differs in size (height) as well.
Not serious though. Currently using a button on the forms itself to turn the tooltips help on and off. Just thought if it can go up there it'll be nice.
Yes, the concern of look-and-feel in different windows operating systems is correct. The better (and less complex) solution will be to skin your form (i.e remove default windows skin and apply customized one).
"skin your form"
What does that mean?
Have A Look Here! For A Good Example of form skinning.
By Form Skinning I implied, add either custom GUI controls, thus allowing yourself to do whatsoever you want to, with user interface.
Decided to stick to the button on the form itself. Thanks for the suggestions.