C
C#2mo ago
Darkon

Hitting the button does nothing....

I am developing a program to watch for some servers to be up... I have a script grabbing the directories of the servers to add them to the config. I have a button setup to run the script. When i click the button it does nothing... What code do i need to share in order for you to help?
20 Replies
🎅🏼Async-Void 》AOC 2024 🎅🏼
everything related to the button click
Darkon
DarkonOP2mo ago
No description
🎅🏼Async-Void 》AOC 2024 🎅🏼
that doesn't tell us much, does it?
Darkon
DarkonOP2mo ago
No description
Darkon
DarkonOP2mo ago
No description
🎅🏼Async-Void 》AOC 2024 🎅🏼
try changing partial to public partial void RunScript() change to public void RunScript()
Darkon
DarkonOP2mo ago
still nothing happens not sure
🎅🏼Async-Void 》AOC 2024 🎅🏼
maybe paste all the code in $paste
MODiX
MODiX2mo ago
If your code is too long, you can post to https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code!
Darkon
DarkonOP2mo ago
guess you need this to... oh i got it working.. i think lol nvm it just logged that i hit the button
whatsinaname
whatsinaname2mo ago
Ensure that the properties of the buttons has this event mapped for the clockt event. Or re-add the button and generate the event and move the code there. I mean business logic.
SG97
SG972mo ago
should your RunScript have something more than just Log and MessageBox oh, you have 2 RunScript
Darkon
DarkonOP2mo ago
I deleted it and restarted... Moved the script to the Form1 ... now i am having an issue where the form will not show up... gonna have to restart... this time I am going to ensure i setup the git version thingy
SG97
SG972mo ago
$debug
MODiX
MODiX2mo ago
Tutorial: Debug C# code and inspect data - Visual Studio (Windows)
Learn features of the Visual Studio debugger and how to start the debugger, step through code, and inspect data in a C# application.
Darkon
DarkonOP2mo ago
the issue is that the BtnRunScript_Click is apparently not there... and i cannot open the designer to check on it
SG97
SG972mo ago
Is not where
Darkon
DarkonOP2mo ago
idk i have it working now apparently there was a Duplicate BtnRunScript somewhere...
SG97
SG972mo ago
All good
Darkon
DarkonOP2mo ago
I DID IT!!!!!!! ITS WORKING MOAHAHAHA
Want results from more Discord servers?
Add your server