Forum Moderators: open
label to display a certain image. Which image it displays depends on the parameter passed
to it. But i want the event that calls the DisplayLocation subroutine to be a button. But
it seems that using events, the event handler has to accept the parameters Object and
EventArgs. But what if i want my button click to call a subroutine where i send in my own
parameters? Like if i want to call DisplayLocation('image1'). How do i do that with a
button click?
BTW, dont concentrate too much on the specifics of the problem about changing images in a
label. Thats just an example. I just want to know how to send my own parameters to a
subroutine/function thats called by something like a button click.