Visual Basic Graphics updating error, Only update on user input
I have been working on a simple program that uses pictureboxes and draws a
grid on the form.
However when the program starts, it leave a transparent box where my
picturebox should be.
Seen below:
The only code I have in the paint event is:
Private Sub pb_key_Paint(ByVal sender As Object, ByVal e As
System.Windows.Forms.PaintEventArgs) Handles pb_key.Paint
pb_key.Image = keyBMP
End Sub
Where keyBMP is just simply, a white rectangle that is meant to be in that
empty transparent hole.
Thanks
NOTES: I have tried doing Me.Refresh() in the form load handler but alas
no white box
No comments:
Post a Comment