Plz Help Me to Solve this Error.. I am coding this to build a Calcuator in Vb.net....i have declared "b" as a Button.. how to resolve this error.. plz help..
Why not make "b" the same type as sender? Also, you can examine what the sender is with TypeOf as noted:
Or you can just do an explicit cast as
Dim b As Button = DirectCast(sender, Button)