What does (ByVal sender As System.Object, ByVal e As System.EventArgs) mean?

K

Kathy Burke

I just don't get what the () after the sub name does...kind of stupid
question, but it would be nice to understand it. Thanks.

Kathy
 
K

Kevin Spencer

Everything in between the parentheses is parameters. Parameters are values
that are passed to a function or subroutine, from the code that called the
subroutine. As the code you mentioned is an Event Handler, the parameters
are passed by the object which raised the Event.

Is that what you were asking?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top