1

I'm facing a problem in windowsforms. When I change the backgroundimage of a menubutton the delay is way too long, it takes around 1/2 seconds to change it. The reason why it's happening is not because of my computerspeed, I'm sure of that. Here's my code, I'm looking forward to someone that could help me out.

private void button1_MouseHover(object sender, EventArgs e)
    {
        button1.BackgroundImage = Properties.Resources.Tomb_of_the_Ancients_Portal;
        label1.Visible = true;
    }

    private void button1_MouseLeave(object sender, EventArgs e)
    {
        button1.BackgroundImage = Properties.Resources.Toxic_Sewers_Portal;
        label1.Visible = false;
    }
DutchJelly
  • 59
  • 6

1 Answers1

-1

You can call .Refresh() on the button so it can redraw its graphics.