❔ newb question multiple projects same solution

how would one go about opening a form from a seperate project in the same solution? i cannot find terminology's to even google what im asking for
38 Replies
Milenov
Milenov2y ago
using directive should do the trick
SirRodgerBottoms
SirRodgerBottomsOP2y ago
this basically?
SirRodgerBottoms
SirRodgerBottomsOP2y ago
if this works i will be super fuckin happy,i spent ages fixing this guys code and adding comments, if i have to redo the design of the forms too i will cry
Milenov
Milenov2y ago
Milenov
Milenov2y ago
that actually you need to use your own namespace
Thinker
Thinker2y ago
Right click on Dependencies under the top project, then add project reference, then click the checkbox for your other project. After thst you need to, as mentioned, as a using statement for your namespace.
Milenov
Milenov2y ago
well generally your gui should be independent
SirRodgerBottoms
SirRodgerBottomsOP2y ago
yeah i figured at top but yeah will have a mess around with file paths (think ill just copy his folder into my own project folder then go from there) and hope it works
Milenov
Milenov2y ago
if you're looking to actually make improvements in the future
SirRodgerBottoms
SirRodgerBottomsOP2y ago
np will do this too yeah ill probably remember this, its a school thing, wasnt ever told how to use multiple projects in same solution
Milenov
Milenov2y ago
i'm a newbie as well i feel your struggle 🙂
SirRodgerBottoms
SirRodgerBottomsOP2y ago
ive done most of this other guys work and had 3 hours sleep a night because of other subject assignments, im close to putting my head through keyboard brain not work much now
Milenov
Milenov2y ago
take a break would probably do you good
SirRodgerBottoms
SirRodgerBottomsOP2y ago
cant, everything due for friday
Milenov
Milenov2y ago
well i'd love to help if i can
SirRodgerBottoms
SirRodgerBottomsOP2y ago
even lecturers are a bit confused why they gave us 5 assignments ontop of eachother lol
Milenov
Milenov2y ago
do you got it on github ?
SirRodgerBottoms
SirRodgerBottomsOP2y ago
once this bits done, i just need to do a write up but thanks anyway lol all i need to do is just get one button to load the other project
Milenov
Milenov2y ago
i got my own struggle right now as well. I got a simple Snake game, and i want to do a multiplayer for it 🙂 sounds simple enough. Correct the dependencies as Thinker said and you should be done with it 🙂
SirRodgerBottoms
SirRodgerBottomsOP2y ago
ah, yeah havent touched networking yet, thankfully any experience i have in that area was handled by the engines themselves
Milenov
Milenov2y ago
make sure the other projects classes are accessible as well i haven't really worked with any game engines
SirRodgerBottoms
SirRodgerBottomsOP2y ago
i might get away without that, both projects are seperate games self contained, one just contains a menu to load them some are forgiving others are cruel
Thinker
Thinker2y ago
Well you need classes that you want to access across projects to be public.
SirRodgerBottoms
SirRodgerBottomsOP2y ago
i may just laze out on his half and say he never bothered making high scores a thing ive done too much correction on his work "what i would do to improve the project" then just write about the flaws on it should cover it in the write up
Milenov
Milenov2y ago
i would consider this a good experience cause when you do it proffessionally you would have to correct a lot of code 🙂
SirRodgerBottoms
SirRodgerBottomsOP2y ago
honestly if this guy did this little work and left it to me to fix and actually get it working id expect him not to make it out of probation its just a drag and drop game, i dont know how he didnt get it working other than just being lazy for some reason he put console code in it pretty sure he just copy pastad stuff and didnt read
Milenov
Milenov2y ago
are those all quiz games ?
SirRodgerBottoms
SirRodgerBottomsOP2y ago
yeah supposed to be educational, my own project wasnt even this hard but in trying not to tear down everything he did i ended up just causing more problem tryna make sense out of what he did do not a single comment anywhere i just made a spelling game where you click a button, a word plays you type it, beat the timer,
Milenov
Milenov2y ago
if he was able to write you would probably don't need those sometimes it's faster to do it from scratch
SirRodgerBottoms
SirRodgerBottomsOP2y ago
unfortunatly need them for the writeup part of the assignment for examples
Milenov
Milenov2y ago
take a break and consider your option
SirRodgerBottoms
SirRodgerBottomsOP2y ago
oh its all fixed now, just need to make this button work
Milenov
Milenov2y ago
well congrats 🙂
SirRodgerBottoms
SirRodgerBottomsOP2y ago
MAYBE later if i have energy ill share classes so he can display usernames on top
Milenov
Milenov2y ago
GitHub
GitHub - rmilenov/Snake
Contribute to rmilenov/Snake development by creating an account on GitHub.
Milenov
Milenov2y ago
check this out 🙂
SirRodgerBottoms
SirRodgerBottomsOP2y ago
nice, plays well, when i finish up my assignments ill take a dig through your code and see if i can pick up anything, we being taught sloppy old ways of doing things, plus im very interested in how you did the grid movement
Accord
Accord2y 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