Results 1 to 3 of 3

Thread: Mininmize, Maximize, CLOSE!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    Ontario, Canada
    Posts
    79
    Does anyone know how to change the size of the Min/Max/Close buttons on a form? I would like to make them bigger.

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    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.

  3. #3
    Guest
    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
  •  



Click Here to Expand Forum to Full Width