❔ Im a beginner doing a graphical assignment in windows forms

So basically im in an online class and the teacher gave us an assignment to do a forms project that has a picturebox and a few buttons. when a button is clicked a correct drawing is supposed to show in the picturebox but i cant get it to show the right drawing. ive used the help of some ai bots but i just cant get it to work correctly. any help is appreciated. ive attached a pic of the code aswell.
No description
No description
No description
15 Replies
Omnissiah
Omnissiah14mo ago
(why don't you use floating numbers, 8 + 1/2 is 8.5)
Buddy
Buddy14mo ago
We will not do your homework for you, we do not condone cheating.
Imagine Wagons
Imagine WagonsOP14mo ago
Havent asked anyone to do my homework. Im stuck and i asked for help. Since the teacher gave us permission to use other sources(AI, Google etc) Im asking help here.
Buddy
Buddy14mo ago
A Line graph chains together the lines. Start point is the end of the previous node. Unless it is the first node.
No description
Imagine Wagons
Imagine WagonsOP14mo ago
im at the brink of giving up harold . looks like this now
No description
Omnissiah
Omnissiah14mo ago
well it's getting better
SWR
SWR14mo ago
Why is it supposed to look like what it looks like? What is the assignment exactly? We can't help you if we don't know why something is right or wrong
Imagine Wagons
Imagine WagonsOP14mo ago
its supposed to draw using bitmapper. the object drawed should be 5 diagonal lines going from the left side of the picturebox to the right side of the picturebox
Omnissiah
Omnissiah14mo ago
you're getting dimensions wrong and rotation wrong (so x <=> y i guess) start by putting some names for the constants in your code, so that it's a little more readable
Imagine Wagons
Imagine WagonsOP14mo ago
No description
Imagine Wagons
Imagine WagonsOP14mo ago
made some progress
Imagine Wagons
Imagine WagonsOP14mo ago
how would i start drawing this with bitmapper?
No description
SWR
SWR14mo ago
Looks like a bunch of ellipses
Will
Will14mo ago
you could make that with a for loop and the DrawEllipse function, with each iteration move the origin of the ellipse to the left and increase its width
Accord
Accord14mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server