Question

I have a Windows Form Application in Visual Studio 2008 - PictureBox.Refesh() method causes a delay when drawing on a PictureBox. Is there any method that gives the same result without delay?

Was it helpful?

Solution 2

i have solved my problem my self

i just set a timer and on its event i have updated my image and the timer interval is set as i desired to 100 miliseconds now my application is running so smoothly any one up with this problem try this it works for me

regards:

OTHER TIPS

Without delay? Invalidate() works too, but remember... don't use refresh() on the whole form, specify it... Maybe that's causing the delay (I don't see delays like that, are you reading the image from where?)

EDIT: I was building a project and PNG's 8-bit alpha blending was not playing nice with winforms. Open my app and see if you have that flickering when you resize:
http://www.mediafire.com/?rnj25my2ygd

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top