mouseHover

  • Thread starter Thread starter Rudiga
  • Start date Start date
R

Rudiga

Hi,

I am trying to get this code to work just to check if i can trigger an event
when the mouse goes over a button. But it doesnt seem to be working, can
anyone help?

void butRussia_MouseHover(object sender, System.Windows.Forms.MouseEventArgs
e)

{

System.Console.Write("ello");

}



Thankyou



Rudiga
 
Rudiga,

What do you mean it doesn work? Did you attach this method to the event?
It doesn't fire or it doesn't work as you expected to work?

Probably it would be a good idea to post some simple sample code that we can
compile and test.
 
I was able to do this so it may be as simple as where you are looking for the
output. I would suggest you change the System.Console.Write("ello"); to
MessageBox.Show("ello"); or if you leave the code alone, be sure to check
the Output window in the IDE to see if it did the write. It did for me.

HTH
 

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