Show name of pressed button
Code:
Private Sub btn_abbr1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button2.Click, Button3.Click
msgbox(sender.ToString)
End Sub
In .NET it ´s working it tells me what button pressed:
Quote:
System.Windows.Forms.Button, Text: Button1
In .NET it ´s NOT working it tells me only:
Quote:
System.Windows.Forms.Button
Is it possible to show the name of pressed button in .NET CF ?
Re: Show name of pressed button
Try Something like
Dim btnTest as button = ctype(e,button)
messagebox.show(btntest.name)
Pete