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

Staff online

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top