In my chat program main form i have a dynamic list of contacts saved in a database on the clients PC. The only problem is that I dont know how to open a new chat window dynamically to start chatting to the person they clicked on.
All i can do is open the form using
chatwindow.show();but the window doesnt know who to chat to! Is there anyway of passing even a variable onto the chatWindow form?
There are no in-depth chat program tutorials on the internet that I can find, only ones that use streamreader etc. I have a feeling the solution is incrediably simple, but its been driving me nuts.