0

I'm working on a messenger. Scenario is this: a thread is running at background as soon as it gets a message from server. It has to show this in a new form. But when i try to show the form, form just hangs and nothing happens on form.

Code is like this where i'm calling form

'Some Thread waiting for message
' Got message
Dim frm as new Form1()
frm.show()

Form just hangs like freeze and than just make me mad. Form1 is just a normal form. I know i've to use delegates for cross threading and invoke or begininvoke methods. But i'm unable to implement them. Please some expert help me. My project is stuck..........

Thanks in Advance

2
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by Ramy Mahrous
0

Search on Google "Implementing threads" you'll find a lot of articles, it's very hard to write a new one here, but I prefer you to search.

0

I think you do not bother to read my Question actually. I didn't ask about how threads work. Otherwise Google would be enough to me. My Question is that how to invoke a Window Form from a behind thread.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.