Results 1 to 3 of 3

Thread: [Solved] Closing Application on Mouse Click

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2012
    Posts
    2

    Resolved [Solved] Closing Application on Mouse Click

    Hi Guys,

    I found this small code to create a simple black windows to cover my screen.
    Code:
    Public Class BS
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Me.StartPosition = FormStartPosition.CenterScreen
            Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
            Me.WindowState = FormWindowState.Maximized
            Me.BackColor = Color.Black
            System.Windows.Forms.Cursor.Hide()
        End Sub
    End Class
    I would really like to close it on a simple left mouse click.

    I tried to work this out with a couple of google suggestions, but I have no experience in vb so im consulting for help here.

    Thanks in advance.
    Last edited by Halibu; Aug 19th, 2012 at 12:40 AM.

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