This is my method inside a class in my Form. I'm using a custom image background on my buttons, and I want to change them so that they appear to animate:
private void restaurantButton_Click(object sender, EventArgs e)
{
System.Threading.Thread.Sleep(75);
restaurantButton.BackgroundImage = Properties.Resources.buttonBackClicked;
System.Threading.Thread.Sleep(150);
restaurantButton.BackgroundImage = Properties.Resources.buttonBack;
}
The animation happens if I give it a single change. The above code doesn't appear to do anything. Please help, and if you can, suggest another way to animate controls manually (i.e. control image, click time, etc.) in VC# (VS2013).