hello guys,

i'm implementing a simple game with c#. question is how to redraw the window form.

my game loop is really simple:

while (!stop)
{

gl.gamelogic();

Refresh();

//Update();

Application.DoEvents();

}


i have tried both refresh and update.

update doesn't really redraw the form immediately unless i resize the form.

refresh redraws the form immediately, but the resulting animation looks really flashy.

how can i get rid of the flashy result? thanks