Mose over...

May 30 2008 2:47 AM

Hi!

I don´t know what I´m doing wrong...

I have made a desktopapplikation and want to have an rollover effect /mouseover at an imagebutton with this code and it doesent work! What am I missing...

name button5 is stupid I know but it´s a lab...

OBSERVE that button5_Click works fine but not the others...

private void button5_Click(object sender, EventArgs e)

{

MessageBox.Show("Whatever");

}

private void button5_OnMouseHover(object sender, EventArgs e)

{

MessageBox.Show("WhateverHepp");

}

private void button5_MouseEnter(object sender, EventArgs e)

{

//turn button red when the mouse pointer comes on it

button5.BackColor = Color.Red;

}

Can I miss a using.... or something

Best regards //  TT


Answers (1)