angelpro
Programmer
- Dec 20, 2011
- 6
Hello,
I have a panel with a background image and I set pictureboxes at runtime on it. So when I press the button that displays all the pictureboxes at runtime there is something like flickering or flashing which is very annoying. I tried the code to the form load event and I don't get this kind of flickering or flashing. But unfortunately I need this code to the button. Is there a way to avoid the flickering? If not would it be a better idea, to use a picturebox and not the panel, but how could I display other pictureboxes at runtime onto a picturebox? I have tried with the parent property with no effect. It seems like the picture boxes are displaying back of the picturebox. What can I do? Any help will be much appreciated.
I have a panel with a background image and I set pictureboxes at runtime on it. So when I press the button that displays all the pictureboxes at runtime there is something like flickering or flashing which is very annoying. I tried the code to the form load event and I don't get this kind of flickering or flashing. But unfortunately I need this code to the button. Is there a way to avoid the flickering? If not would it be a better idea, to use a picturebox and not the panel, but how could I display other pictureboxes at runtime onto a picturebox? I have tried with the parent property with no effect. It seems like the picture boxes are displaying back of the picturebox. What can I do? Any help will be much appreciated.