Home > DeveloperSection > Forums > problem in getting text property for sender object
Mahesh Rawat
Mahesh Rawat

Total Post:11

Posted on    February-01-2011 1:30 AM

 VB.Net VB.Net 

 1 Reply(s)
 1795  View(s)
Rate this:
how we get the text property of sender in vb.net?

Amit Singh

Total Post:103

Posted on    February-01-2011 2:40 AM

hi, mahesh
check this code

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)Handles Button1.Click

        Dim btnTest As Button = sender

        Dim strBtnText As String = btnTest.Text

    End Sub

Modified On Mar-15-2011 09:22:10 AM

Don't want to miss updates? Please click the below button!

Follow MindStick