Interface For Network Chat And New Delivery System
Posted on 2006-06-13
Im developing a network Chat and new delivery system for our company network.
I have made all the back end of the chat protocol and was just after a point in the right direction for the client interface design
basicaly the clients listner is running in a thread started buy the main form with hass the list of contacts in a tree view.
when a user clicks a contact from the tree view it open a form ChatBox
this form sets its self up to point at the contact and send as the signed in user.
so far so good
this is the part that i need some guidance as best way of implemeting
when a message is recived (currently not what i want)
the Main form Listner thread of the recipient pulls in the message and opens a ChatBox form sets the details for sender and reciver so that the reciver can reply correctly.
ok still good
the problem is that if you already have a window open to the user you get a fresh one rather than an update to yours.
how can i detect if the ChatBox form is already open and if it has its recipeant set to that of the sender of the incoming message?
ok so at the main form listner thread when the message comes in i know in code the sender, the reciver, the message.
also onse i detect that the form ChatBox is already open and pointing at the sender of this new message. how do i update its message textbox from the main form? ie cross form update (deligate?...)
Any advice would be gratly appreciated.
Kind Regards, Clinton Storer.