|
-
Sep 8th, 2000, 12:36 PM
#1
Thread Starter
Lively Member
Does anyone know how to change the size of the Min/Max/Close buttons on a form? I would like to make them bigger.
-
Sep 8th, 2000, 12:46 PM
#2
Frenzied Member
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 
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Sep 8th, 2000, 02:47 PM
#3
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|