+ 1
How to make a snowman in Visual Studio C# Windows Forms App (.NET Framework)?
https://code.sololearn.com/cagqrFbuqksD/?ref=app So basically I need to create a snowman with geometric shapes, like circles ellipses. Those need to be white. The snowman need to be apper by clicking the Button in the (Form1 Design) interface. I have made a little progress but it is not done yet and also have a lot of error. Then I got stuck. Thanks in advance.
3 Antworten
+ 1
The problem is in the method Circle.
In this method you create other methods : Method1 and Method2 that is not allowed.
Graphics g = CreateGraphics();
SolidBrush b = new SolidBrush(Color.Red);
g.FillEllipse(b, x - r, x - r, 2 * r, 2 * r);
This piece of code seems to be working fine.
Put these three lines in the Body and Head method.
Remove the entire circle method.
And go from there.
+ 1
Thanks very much
0
Keep asking, keep coding