C#
((TextBox)sender).Text ?
On 30/03/2012 2:01 PM, Ian Thomas wrote:
Hello folks
I've forgotten how to get the text from a button click that handles
multiple buttons --
PrivateSub Buttons_Click(ByVal sender As Object, ByVal e As EventArgs) _
Handles Button1.Click, Button2.Click, Button3.Click, Button4.Click
(VB.NET above)
sender.ToString gives me the whole object description with its .Text
property, but what's the simple expression to get just that text?
System.Windows.Forms.Button, Text: MyButtonText
------------------------------------------------------------------------
Ian Thomas
Victoria Park, Western Australia