Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
how can I get the name of last event in VB.NET?
Fatma Nuran Ozcani
Jan 8 2007 4:39 AM
1.8k
Reply
Hello,
My name is Nuran and I am a new in TheScripts.com and a programmer on .NET and I am developing a VB.NET project with windows forms. I need to know how I can obtain the name of a current triggerred event in a such code:
Private Sub dene(ByVal sender As Object, ByVal e As EventArgs) _
Handles btnOne.MouseHover, btnTwo.MouseHover, btnTwo.gotfocus, btnTwo.lostfocus
Dim clickedCtrl As Control
clickedCtrl = DirectCast(sender, Control)
lblDisplay.Text = clickedCtrl.Name ‘.... name of the control ........
'----here I need to know where come here, for example from gotfocus of btnTwo or lostfocus of '....btnTwo in the list of Handles keyword.
End Sub
Could you please tell me about how I can get the name of last event in VB.NET?
Thanks
[email protected]
Nuran
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
"System.InvalidOperationException was unhandled" Any Idea?
about vb.net forms