How can i put my own type of button on the title bar of my program ? Like right next to _ and X and the square.
How can i put my own type of button on the title bar of my program ? Like right next to _ and X and the square.
Take a look at this thread.
how did yo get the square
What square? :confused:
the maximize square
Oh, I changed the font to Marlett.
Set the Caption Property to Null String
And Also Set the ControlBox to False.
Create A Picture Box In the place of titlebar.
This is your custom titlebar.
In the event
Private Sub Picture1_MouseMove(Button as Integer,...)
If Button Then
ReleaseCapture ' Declare This API Before Using
SendMessage Me.hWnd,&HA1,2&,0 'Declare This API Too
'If You Want To Play Sound
'sndPlaySound "SoundName",&H1 'Declare This Too.
Endif
End Sub
You can then add more picture boxes or image boxes or
any thing that has a click event in the place of the
minimize, maximize and close buttons and act accordingly.
yeah, me too. I tried to get the handle to one once. Never was able to.Quote:
Originally posted by smashtheqube
I've always wondered how AOL did that. :)
oh i c thanks Matthew
Hi,
this is really good, but how do you create your custom titlebar when using a menu? I tried it, but the menu was above the titlebar.
I'd like to have a 4th button in the titlebar to minimize the form to tray, how can I do that?
thanks
Nice Avatar Xdream
http://forums.vb-world.net/avatar.php?s=&userid=16234
looks better surrounded by white
Yeah, thanks JasonLpz, but finally it's not really mine :) you know, the web is huge...
Regards