c# - Force NOT to paint during duration of a function -


I wrote a program that pulls the specific position of a board game (I think it's "luoodo" in English) It is said that now I can attract all the areas and piers etc. But if a paw is taken, then I have to do that piece again. The problem is that when I do this, the screen shines for a very short time. This is probably because I clean all the fields and pieces before, and then let them radre (I want to improve it, but the problem can be, in small form, still, I think), the screen becomes clear Everything flashes between till I redrawed everything until I tell it.

I'm trying it out first code> this. SuspendLayout () , because the name suggests that it should do exactly this, take it The following does not work.

Flickrunning is always having some problem with Winform Custom Graphics.

Try it: Instead of dragging the pan position on the form, drag them to bitmap. When all this is done, just change the image of a photo box on your form to change the bitmap. Form will be rebuilt using the new image. You can use two bitmap objects (which are quite valid) and clean them every time to prevent the program from being a memory hog vowel, now you have "page flipping" graphics, which can be used to recreate the form Can be freely prepared for

Comments