Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot19-Sep-13 23:58
harold aptroot19-Sep-13 23:58 
GeneralRe: how to use thread in for loop in c# Pin
superselector23-Sep-13 18:51
superselector23-Sep-13 18:51 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot23-Sep-13 21:08
harold aptroot23-Sep-13 21:08 
GeneralRe: how to use thread in for loop in c# Pin
superselector23-Sep-13 21:24
superselector23-Sep-13 21:24 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot23-Sep-13 21:28
harold aptroot23-Sep-13 21:28 
GeneralRe: how to use thread in for loop in c# Pin
superselector23-Sep-13 22:31
superselector23-Sep-13 22:31 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot23-Sep-13 22:33
harold aptroot23-Sep-13 22:33 
GeneralRe: how to use thread in for loop in c# Pin
superselector23-Sep-13 22:39
superselector23-Sep-13 22:39 
yes the time out takes 4 secs, i have given 2 secs for testing ... actually on successful ping checking for ping i am trying to get some basic details of that ip using WMI.WMI is taking some time also if its not enabled.

C#
for (int index = startIP; index <= EndIP; index++)
                {
                    ipVal = startSubnet + "." + index.ToString();
                    
                   Thread wmithread = new Thread(() => PerformWMIOperation(ipVal.ToString().Trim(), txtUserName.Text.ToString().Trim(), txtPassword.Text.ToString(), txtDomain.Text.ToString(), dtAssetValues, chkImpersonate.Checked, recordnumber));
                    wmithread.Start();
                    wmithread.Join(2500);
                }

GeneralRe: how to use thread in for loop in c# Pin
harold aptroot23-Sep-13 23:15
harold aptroot23-Sep-13 23:15 
GeneralRe: how to use thread in for loop in c# Pin
superselector23-Sep-13 23:39
superselector23-Sep-13 23:39 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot23-Sep-13 23:59
harold aptroot23-Sep-13 23:59 
GeneralRe: how to use thread in for loop in c# Pin
superselector24-Sep-13 0:50
superselector24-Sep-13 0:50 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot24-Sep-13 0:54
harold aptroot24-Sep-13 0:54 
GeneralRe: how to use thread in for loop in c# Pin
superselector24-Sep-13 1:17
superselector24-Sep-13 1:17 
GeneralRe: how to use thread in for loop in c# Pin
superselector24-Sep-13 1:50
superselector24-Sep-13 1:50 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot24-Sep-13 4:33
harold aptroot24-Sep-13 4:33 
AnswerRe: how to use thread in for loop in c# Pin
Abhinav S19-Sep-13 23:15
Abhinav S19-Sep-13 23:15 
AnswerRe: how to use thread in for loop in c# Pin
Simon_Whale19-Sep-13 23:55
Simon_Whale19-Sep-13 23:55 
GeneralRe: how to use thread in for loop in c# Pin
superselector22-Sep-13 19:29
superselector22-Sep-13 19:29 
Questionasp.net enterprise application Pin
Member 882441719-Sep-13 8:26
Member 882441719-Sep-13 8:26 
AnswerRe: asp.net enterprise application Pin
Dave Kreskowiak19-Sep-13 13:22
mveDave Kreskowiak19-Sep-13 13:22 
GeneralRe: asp.net enterprise application Pin
Member 882441721-Sep-13 8:30
Member 882441721-Sep-13 8:30 
GeneralRe: asp.net enterprise application Pin
Dave Kreskowiak21-Sep-13 12:10
mveDave Kreskowiak21-Sep-13 12:10 
QuestionOPOS driver Pin
kropek19-Sep-13 2:02
kropek19-Sep-13 2:02 
AnswerRe: OPOS driver Pin
kropek19-Sep-13 2:02
kropek19-Sep-13 2:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.