Results 1 to 4 of 4

Thread: TitleBar Height

  1. #1
    spetnik
    Guest

    Question TitleBar Height

    How can I adjust the height of my titlebar?

  2. #2
    Matthew Gates
    Guest
    How about making your own titlebar? Take a look at this thread for an example.

  3. #3
    Megatron
    Guest
    You can use a PictureBox to simulate a Titlebar. Add the following code to a Form with a PictureBox.
    Code:
    Dim OldX As Single
    Dim OldY As Single
    
    Private Sub Form_Load()
        Picture1.Align = vbAlignTop
    End Sub
    
    Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
        If Button = 1 Then
            OldX = X
            OldY = Y
        End If
    End Sub
    
    Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
        If Button = vbLeftButton Then Move Left + (X - OldX), Top + (Y - OldY)
    End Sub

  4. #4
    spetnik
    Guest
    If i do that, i would like to SubClass it using SetWindowLong so that windows would think that is a titlebar. Also, Ive seen apps that have pics on their titlebar. Anyone know how that is done?

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