A
Anibal
How do i convert an object variable to a Button one.
I have the following code in VB wich works fine:
Sub Button1Click(sender As Object, e As System.EventArgs)
Dim btn as Button = Convert.ChangeType(sender,GetType(Button))
MessageBox.Show(btn.Text)
End Sub
How can i reproduce the same behaivour in C#?
Thanks.
I have the following code in VB wich works fine:
Sub Button1Click(sender As Object, e As System.EventArgs)
Dim btn as Button = Convert.ChangeType(sender,GetType(Button))
MessageBox.Show(btn.Text)
End Sub
How can i reproduce the same behaivour in C#?
Thanks.