.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> Windows Form Controls >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Get the Mouse Click Button and Position in Windows Project

Posted By:Prasanti Prusty       Posted Date: February 26, 2010    Points: 10    Category: Windows Form Controls    URL: http://www.dotnetspark.com  

Get the Mouse Click Button and Position in Windows Project
 


'Get the Mouse Click Button and Position in Windows Project
Public Class frmMouseDown

    Private Sub frmMouseDown_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseDown
        MessageBox.Show(String.Format("X = {0} , Y = {1}", e.X, e.Y), String.Format("the {0} Mouse Button hit me at : ", e.Button.ToString()))
    End Sub

End Class


     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend