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..

error.jpg

Recommended Answers

All 2 Replies

Or you can just do an explicit cast as

Dim b As Button = DirectCast(sender, Button)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.