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

  • Thread starter Thread starter Kathy Burke
  • Start date Start date
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
 
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.
 
Back
Top