Define sender as something other than Object?

Can sender be defined as something other than Object? Can it be defined as a particular type of object?
In other words, what options do I have when specifying sender in an event handler?

For earlier related discussion see:
Who is Participating?
Wayne Taylor (webtubbs)Connect With a Mentor Commented:
Hi bobinorlando,

If you are writing your own events in a class, you can declare sender as whatever you wish.

If, however you are using an inbuilt control event, it must remain as an Object, and use CType() as Idle_Mind suggested.


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.