C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » VB.NET Syntax »

Handling PictureBox Events in VB.NET


Posted Date: 01 Nov 2008    Resource Type: Code Snippets    Category: VB.NET Syntax
Author: RoshanMember Level: Silver    
Rating: 1 out of 5Points: 10



We can handle mouse events for the picture box and respond accordingly.

For Eg:

The PictureBoxes example handles MouseDown events by displaying the location where the mouse went down in a TextBox.


Private Sub PictureBox1_MouseDown(ByVal sender As Object,ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown
'The values will get displayed in the textbox
TextBox1.Text="You Clicked at " & e.X &","&e.Y

End Sub



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
PictureBox Events  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Handling Label Events in VB.NET
Previous Resource: Horizontal Scroll ListBoxes in VB.NET
Return to Discussion Resource Index
Post New Resource
Category: VB.NET Syntax


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use