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

Or you can just do an explicit cast as

Dim b As Button = DirectCast(sender, Button)
Jump to Post

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 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.