954,510 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

form button doesn't work with threads!

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???

kadamora
Newbie Poster
10 posts since Jan 2009
Reputation Points: 10
Solved Threads: 0
 
__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

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

kadamora
Newbie Poster
10 posts since Jan 2009
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: