---
title: "problem in getting text property for sender object"  
description: "problem in getting text property for sender object"  
author: "Anonymous User"  
published: 2011-02-01  
updated: 2011-02-01  
canonical: https://www.mindstick.com/forum/161/problem-in-getting-text-property-for-sender-object  
category: "vb.net"  
tags: ["vb.net"]  
reading_time: 1 minute  

---

# problem in getting text property for sender object

how we get the [text](https://www.mindstick.com/blog/301635/did-people-reinvent-texting-to-express-the-full-range-of-emotions) [property](https://www.mindstick.com/blog/205/property-notification-in-c-sharp) of sender in [vb.net](https://www.mindstick.com/forum/426/sqlsever-2000-in-network-with-vb-dot-net-2008)?\
\

## Replies

### Reply by Amit Singh

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
```


---

Original Source: https://www.mindstick.com/forum/161/problem-in-getting-text-property-for-sender-object

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
