I have a picture box where i display graphics using gdi functions.
Dim g As Graphics
g = Pic_Dessin.CreateGraphics
and so on....
The graphics are redrawn anytime i change a value in the textboxes on the same form.
I want the picture to displayed at all time.
I tried to solutions :
1- Draw on loading and on form activation (MyBase.Activated, MyBase.GotFocus events)
Problem : Image tends to disapear for no reason after loading, and occasionally, when i click on a textbox (this seems pretty random for me)
2- Use a timer to refresh the drawing every 800 ms
Problem : each time the graphics are redrawn, the picture box goes white for a moment, which doesn't look too good...
I'm out of ideas now, and i will appreciate help ^^
Thx in advance