So I just made a simple plugin which is useful for me.
Now, I want to keep logs of everything in a GUI.
So I added a windows form to the project and am using list box.
I'm kinda stuck on how to populate that list box.
Also, how do I access the form in the .cs file?
New
Current Project:
SimpleExaltHack
Outdated stuff I made in the past:
Famebot
Clientless tradebot
RotMG ping checker
Zautonexus crack
New
Current Project:
SimpleExaltHack
Outdated stuff I made in the past:
Famebot
Clientless tradebot
RotMG ping checker
Zautonexus crack
Dont forget you can make a constructor in other from by adding parameters to Form1 newform = new Form1(); and letting visual sudio light bulb thing do its work.
Awesome, thanks for the help guys.
So for populating a list.
I can access the listbox inside Form.cs, but is there a way to add things to the listbox from the Plugin.cs?
For now, I'll just save the data to a txt file then load the txt file to the listbox :P
Last edited by megamind27; 08-20-2016 at 11:27 AM.
I cant really check atm but if im not mistaking you can make static functions so you can call it from main form (idk if it even has to be static) but basically using same instantce.. so form1.fucntionName(parameters) and create function in second form that adds things to listbox
I'm not quite getting it.
I'll mess around with that some more later. The text file is working well for now.
Any idea on how to perform an action on the client via button click on the form?
Probably also using a static function, huh?
I'm gonna be lazy just to have it working right now. Another text file it is.
Last edited by megamind27; 08-20-2016 at 12:28 PM.
New
Current Project:
SimpleExaltHack
Outdated stuff I made in the past:
Famebot
Clientless tradebot
RotMG ping checker
Zautonexus crack
(assuming your variable is called form1 and your listbox is called listbox1)
New
Current Project:
SimpleExaltHack
Outdated stuff I made in the past:
Famebot
Clientless tradebot
RotMG ping checker
Zautonexus crack
I think I got it.
Thanks guys!
Pretty sure this is solved @Joe, close it my slave.
New
Current Project:
SimpleExaltHack
Outdated stuff I made in the past:
Famebot
Clientless tradebot
RotMG ping checker
Zautonexus crack