I have a windows form application in which I am trying to add a line to the listbox component from another object.
The object is a socket object that connects, sends msgs.. etc.
but I want to show the results of some functions of the socket object in the listbox of the windows form.
If I create an instance of the socket object in the windows form, then how can I add new lines to the listbox?
Would I have to pass an instance of the windows form and pass it to the socket object?