Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Snippet/paint.
#5
This is not the best way to do it.. but for the sake of simplicity I think this will work for you. Adjust the code accordingly to fit your needs

Code:
Public Class Form1
    Dim mDown As Boolean = False
    Private Sub PictureBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown
        mDown = True
    End Sub
    Private Sub PictureBox1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseUp
        mDown = False
    End Sub
    Private Sub PictureBox1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove
        If mDown Then
            Me.Text = "down"
        Else
            Me.Text = "up"
        End If
    End Sub
End Class
Reply


Messages In This Thread
Help with Snippet/paint. - by Aero - 04-23-2011, 06:08 PM
RE: Help with Snippet/paint. - by Resistance - 04-23-2011, 06:39 PM
RE: Help with Snippet/paint. - by Aero - 04-23-2011, 06:41 PM
RE: Help with Snippet/paint. - by Crimson - 04-25-2011, 07:55 PM
RE: Help with Snippet/paint. - by KoBE - 04-25-2011, 08:28 PM
RE: Help with Snippet/paint. - by iCrack - 05-05-2011, 12:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Snippet] Autoclose Msgbox euverve 7 3,277 05-25-2011, 06:41 PM
Last Post: Pyratepig
  [Snippet] Check Email if gmail and valid password length euverve 4 1,800 05-20-2011, 06:51 AM
Last Post: stephen5565
  [Snippet] Get Local Getway euverve 1 1,023 05-16-2011, 07:56 PM
Last Post: KoBE
  [Snippet] Get OS Uptime euverve 0 875 05-12-2011, 07:08 PM
Last Post: euverve
  [Snippet] Random pick from list (Range) euverve 0 688 05-12-2011, 08:22 AM
Last Post: euverve

Forum Jump:


Users browsing this thread: 3 Guest(s)