C
C#•3w 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 》🦃
everything related to the button click
Darkon
DarkonOP•3w ago
No description
🦃 Async-Void 》🦃
that doesn't tell us much, does it?
Darkon
DarkonOP•3w ago
No description
Darkon
DarkonOP•3w ago
No description
🦃 Async-Void 》🦃
try changing partial to public partial void RunScript() change to public void RunScript()
Darkon
DarkonOP•3w ago
still nothing happens not sure
🦃 Async-Void 》🦃
maybe paste all the code in $paste
MODiX
MODiX•3w 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
DarkonOP•3w ago
guess you need this to... oh i got it working.. i think lol nvm it just logged that i hit the button
whatsinaname
whatsinaname•3w 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
SG97•3w ago
should your RunScript have something more than just Log and MessageBox oh, you have 2 RunScript
Darkon
DarkonOP•3w 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
SG97•3w ago
$debug
MODiX
MODiX•3w 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
DarkonOP•3w ago
the issue is that the BtnRunScript_Click is apparently not there... and i cannot open the designer to check on it
SG97
SG97•3w ago
Is not where
Darkon
DarkonOP•3w ago
idk i have it working now apparently there was a Duplicate BtnRunScript somewhere...
SG97
SG97•3w ago
All good
Darkon
DarkonOP•3w ago
I DID IT!!!!!!! ITS WORKING MOAHAHAHA
Want results from more Discord servers?
Add your server