Is there a way I can reference the button control that activated the mouseenter event?

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hello,

Is there a way I can reference the button control that activated the
mouseenter event?

My buttons are created at runtime so i do not know any names.

I was hoping to use Me.ActiveControl but this only works if the button
is clicked.

Thank You
 
The 'sender' argument to the mouseenter event is going to be the object that
triggered the event. You can cast it to a Button if you know that is what it
is.
 
The 'sender' argument to the mouseenter event is going to be the object that
triggered the event. You can cast it to a Button if you know that is what it
is.










- Show quoted text -

Thanks very much.....any idea how i would referefnce the sender
though> I looked on help and couldnt work it out?
sorry I am new to all this...just writing an application for myself
 
Thanks very much.....any idea how i would referefnce the sender
though> I looked on help and couldnt work it out?
sorry I am new to all this...just writing an application for myself- Hide quoted text -

- Show quoted text -

ive sorted it...thanks
 

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

Back
Top