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
everything related to the button click

that doesn't tell us much, does it?


try changing partial to public
partial void RunScript()
change to public void RunScript()
still nothing happens
not sure
maybe paste all the code in $paste
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!
guess you need this to...
oh i got it working.. i think
lol
nvm it just logged that i hit the button
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.
should your
RunScript
have something more than just Log
and MessageBox
oh, you have 2 RunScript
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
$debug
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.
the issue is that the BtnRunScript_Click is apparently not there... and i cannot open the designer to check on it
Is not where
idk i have it working now apparently there was a Duplicate BtnRunScript somewhere...
All good
I DID IT!!!!!!!
ITS WORKING
MOAHAHAHA