PROBLEM IN GETTING TEXT PROPERTY FOR SENDER OBJECT

Mahesh Rawat

Total Post:11

Points:77
Posted by  Mahesh Rawat
VB.Net 
 1846  View(s)
Ratings:
Rate this:
how we get the text property of sender in vb.net?

  1. Amit Singh

    Post:103

    Points:721
    Re: problem in getting text property for sender object

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!