I seem to be having a problem with refreshing an Image control. After a button is pushed, I load a Bitmap into an image control. However, it doesn't seem to want to refresh and display the freshly loaded bitmap. If I minimize the applicaion and then bring it up again(or bring another window on top), the Bitmap is displayed.
I've tried the following, together and individually and in many combinations:
Image1->Repaint();
Image1->Invalidate();
Image1->Refresh();
Form1->Invalidate();
Form1->Repaint();
Form1->Refresh();
I can't seem to find an answer on the Internet. I'd appreaciate any help.
Thanks!
I've tried the following, together and individually and in many combinations:
Image1->Repaint();
Image1->Invalidate();
Image1->Refresh();
Form1->Invalidate();
Form1->Repaint();
Form1->Refresh();
I can't seem to find an answer on the Internet. I'd appreaciate any help.
Thanks!