Hey, thanks for your answer!
But before adding some "add chat text" function I need to build up a working connection to BNET, and so far this doesn't work :/
Somehow I managed to get the invoke working.
But as soon as I try to connect, the application freezes and I get a error message which says something like:
"No data can be written into the transmission connection: An existing connection was closed by the remote host."
Someone got an idea?
Regards Dave
But before adding some "add chat text" function I need to build up a working connection to BNET, and so far this doesn't work :/
Somehow I managed to get the invoke working.
Code Select
delegate void del(string text);
private void bnet_chat_add(string text)
{
if (InvokeRequired)
{
del d = new del(bnet_chat_add);
this.Invoke(d, new object[] { text });
}
lstB_bnet_chat.Items.Add(text);
}
But as soon as I try to connect, the application freezes and I get a error message which says something like:
"No data can be written into the transmission connection: An existing connection was closed by the remote host."
Someone got an idea?
Regards Dave