✅ Help with creating shapes on a windows form app
I have created a windows form app to display shapes on a bitmap, my circle function works fine but my rectangle will work regardless of the text I put in, for example..
will draw a circle with a radius of 40 as it should
will still draw a rectangle even though the string is incorrect
11 Replies
this is my circle function which works correctly
Have you tried debugging to see what's going on / being passed through when your code's running?
Might also help to see the full class
I have and I honestly still can't figure it out :/
i'm going to paste the full class also, it had a character limit on disc one moment
$paste
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
https://paste.mod.gg/dswcflnovpfd/0
Thats the full class
BlazeBin - dswcflnovpfd
A tool for sharing your source code with the world!
https://paste.mod.gg/dszdybmvdwhz/0
this class contains my shape implementations, but I dont think thats the issue
BlazeBin - dszdybmvdwhz
A tool for sharing your source code with the world!
else if (CommandSplit[0].Equals("rectangle") == true) ;
should've spotted it from your initial message, you've got a semi colon at the end of your if statementyeah loooool
i just posted my code to chat gpt
first thing it said was ^^^
what a rookie lol
ty very much
can I upvote the reply or do anything useful?
nah just $close if you're all sorted 🙂
Use the /close command to mark a forum thread as answered