C
C#13mo ago
CyberPenguin_

❔ Cards Windows Forms App

I need to make this for a school project, but I have no idea how to start this. I don't want to get the code. But it would be nice if i get some advice. Thx
24 Replies
TomasGnG 😴
TomasGnG 😴13mo ago
My idea: - list of all images - next button: get the next item from list (probably save the active image id) - previous button: get the the image (current id-1)
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
sibber
sibber13mo ago
first of all create the project and make the ui then try to think of how to display images
CyberPenguin_
CyberPenguin_OP13mo ago
The problem is, we cant use a list/array bc we havnt 'learned' it yet
sibber
sibber13mo ago
you can't use an array?
Murten
Murten13mo ago
Do it anyway.
CyberPenguin_
CyberPenguin_OP13mo ago
No we havn't learned it yet, so I can't use it
sibber
sibber13mo ago
you havent learned arrays but you learned winforms? are you sure?
walter9830
walter983013mo ago
What are you allowed to use?
Murten
Murten13mo ago
Are you allowed to use any collection type?
CyberPenguin_
CyberPenguin_OP13mo ago
I don't think so Yeah, we started directly with winforms. We are learning C# through winforms
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
CyberPenguin_
CyberPenguin_OP13mo ago
No I understand, but I don't have any idea how I can do it. I know partly what arrays are. But if we didn't used it in class. I can't use it I will just skip it then idk
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
CyberPenguin_
CyberPenguin_OP13mo ago
no
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
CyberPenguin_
CyberPenguin_OP13mo ago
no
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
CyberPenguin_
CyberPenguin_OP13mo ago
it's holidays were i live, and it needs to be done the day after holidays :)
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
CyberPenguin_
CyberPenguin_OP13mo ago
Yeah, I will thx
Murten
Murten13mo ago
There's really no good solution to this problem without using an array or list or something of that sort.
Bailey
Bailey13mo ago
there are different sollutions namely: - use an array - use a switch for 2,3, 4 and another var to determen the type (example hart, etc) - use an if construction (too much code but can be done) - use a single counter and load the images where the images have an extension from e.g. 01 to 52. and when higher then 52, go to 1. e.g. card01.jpg card02.jpg and so on do all the cards have to be availeble or only the first 5. if it's only the first 5 an switch is not that much work.
Accord
Accord13mo 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