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 Label Events in VB.NET


Posted Date: 31 Oct 2008    Resource Type: Code Snippets    Category: VB.NET Syntax
Author: RoshanMember Level: Silver    
Rating: 1 out of 5Points: 3



Labels also have events like Click and DoubleClick.
Using these events can be a good thing if we are using a label control as more than just a label,For Eg,to reset a setting of somekind

Here's an example using a DoubleClick Event to change the text in the label when the user double clicks it.

Private Sub Label1_DoubleClick(ByVal sender As Object,_ByVal e As System.EventArgs) Handles Label1.DoubleClick

Label1.Text="Quit Clicking Me!"

End Sub




Responses

Author: Bindu Bujji    01 Nov 2008Member Level: Gold   Points : 1
Hi Roshan
Can you give an example when we go for Label control events in real time applicatons? I never used label control events in our applications.

Thanks
Bindu


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Label 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: Converting strings to numbers in VB.NET
Previous Resource: Handling PictureBox Events in VB.NET
Return to Discussion Resource Index
Post New Resource
Category: VB.NET Syntax


Post resources and earn money!
 
Related Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use