load - C# Draw when window is loaded -
i want draw ellipses when window loaded
without clicking anything, how can it? code following :
int kerx = random.next(10,281); int kery = random.next(10,281); mrpainter.fillellipse(brushes.black, kerx + 10, kery + 10, 20, 20); mrpainter.fillellipse(blue,65,65,20,20); mrpainter.fillellipse(red, 205, 65, 20, 20); mrpainter.fillellipse(yellow, 135, 215, 20, 20);
assuming using winforms, insert code in formloaded
event of main form.
Comments
Post a Comment