Results 1 to 2 of 2

Thread: Right Click minimise

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2000
    Location
    Staffodshire, England
    Posts
    32

    Angry

    Is it possible to minimise a form by right clicking the mouse button over the form?

  2. #2
    Guest

    Thumbs up

    Hello,

    You sure can:

    Code:
    Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
      
    ' check for the right mouse button
      If Button = 2 Then
        ' set the forms windowstate to minimize
        Form1.WindowState = 1
      End If
      
    End Sub
    Hope this helps

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