I'm making my first program that is using threads...the problem is that when I click the button that I created in windows form it never goes to the button click event in the debuger!!!
I've read that that those threads should be background so i made like this

Thread sendcon = new Thread(new ParameterizedThreadStart(sending));
                sendcon.IsBackground = true;                
                sendcon.Start(SendingStream);

is there any way to make sure that the event could be done while another threads are working???

Recommended Answers

All 2 Replies

it was my mistake...thanks for help but i was doing something wrong which had nothing to do with threading

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.