Does anyone know how to change the size of the Min/Max/Close buttons on a form? I would like to make them bigger.
Printable View
Does anyone know how to change the size of the Min/Max/Close buttons on a form? I would like to make them bigger.
I think you'll have to draw your own application bar, and draw the buttons yourself (shouldn't be that hard :)), use this to draw a fake bar and put text on it:
http://www.mvps.org/vbnet/code/neet/...srecttitle.htm
This will help you to move the form without the bar:
http://www.mvps.org/vbnet/code/neet/drawfocusrect.htm
Have fun mate :)
Add the following to a Form with a PictureBox. This will make the PictureBox act like a Titlebar.
Code:Private Declare Function ReleaseCapture Lib "user32" () As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Const WM_SYSCOMMAND = &H112
Private Const SC_MOVE = &HF012
Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
ReleaseCapture
SendMessage hwnd, WM_SYSCOMMAND, SC_MOVE, 0
End If
End Sub