C
C#ā€¢9mo ago
ansy

Cookie Clicker project for school

so i have a problem i need to fix a bug on a picture. I use mouse down and mouse up events to resize my picture but now i need to fix the bug for when you click on the pick but let go of the button outside the picture, it stays stuck in the resized state. What should happen is it should resize when you hold the mouse button down and hover over it and go back to normal when you let go of it over the picture or when you go off the picture. 1 other bug i found is that when you hold the mouse button down and let go of it outside the picture it stays stuck in the resized state.
12 Replies
ZacharyPatten
ZacharyPattenā€¢9mo ago
we need a lot more info to help 1. what UI framework are you using? Winforms? WPF? etc. 2. can you share your code? (preferably with a github repo link)
ansy
ansyā€¢9mo ago
sorry i am very new to all this i am using WPF in a .net framework
ZacharyPatten
ZacharyPattenā€¢9mo ago
okay, and about sharing your code? we can't really help unless we can see the code. are you able to upload the code to GitHub so you can share it with us?
ansy
ansyā€¢9mo ago
also like an invite link or ...
ZacharyPatten
ZacharyPattenā€¢9mo ago
a repo link
ZacharyPatten
ZacharyPattenā€¢9mo ago
I assume the repo is currently private,
You may not have access to this repository or it no longer exists in this workspace. If you think this repository exists and you have access, make sure you are authenticated.
ansy
ansyā€¢9mo ago
fuck yes sorry its an open one now
ZacharyPatten
ZacharyPattenā€¢9mo ago
šŸ™‚ yes we can access it. I don't have time to check it this moment but if I do find time and see the issue I'll ping you. it will help others help you too
ansy
ansyā€¢9mo ago
thank you that you wanna help me i been behind on this school project and tried some stuff but nothing stuck. i only been doing C# for like 2 times a day since september cause lessons so i tried using the mouse move event but i can't get it too work can you see what i did wrong
ansy
ansyā€¢9mo ago
ansy
ansyā€¢9mo ago
i try to make the program track my mouse position but it just doesnt work for me You can also see i have added a bit of code to make the store work so the labels and prices react to clicking the button
Want results from more Discord servers?
Add your server
More Posts