I have a procedure that allows me to draw an ellipse. I works great when I cause this to happen with the even of clicking a button. But, when I insert the exact same code in the form_load Sub, nothing happens. Is there a reason for this?
Here is what I am trying to do:
dim mypen as new pen = pen(color.red)
dim design1 as graphics = picturebox1.creategraphics
design1.drawellipse(mypen, 10, 10, 10,10)
works fine with a button click, but not on the form load...wierd. It acutally goes through the code, but nothing is drawn. It does get drawn in a button click event.
Here is what I am trying to do:
dim mypen as new pen = pen(color.red)
dim design1 as graphics = picturebox1.creategraphics
design1.drawellipse(mypen, 10, 10, 10,10)
works fine with a button click, but not on the form load...wierd. It acutally goes through the code, but nothing is drawn. It does get drawn in a button click event.
Last edited: