When does imageindex actually update the button image?
I'm brand new to Visual C#, so this is likely a beginner question, but it's stumping me. I am trying to create a button that, when you click it, it changes the button image for a couple of seconds, then reverts it to normal. I loaded up an image index with several pictures to use, but am getting a strange issue. When the button is clicked on, it waits the amount of time I request (2 seconds), but the picture never changes. (I know it goes through the code, because it does other things unrelated to the button at the same time.) The code is really as basic as (forgive capitalization issues):
button1.imagendex = 6;
thread.delay(2000);
// some other code happens here totally unrelated to the button
button1.imageindex = 10;
I'm trying to figure out if this is an issue where the actual screen refresh does not occur while the code is going on, or if maybe the image index change isn't seen while the button is still "clicked," or some other issue.
Does anyone have any ideas?
Ray

