Click here to Skip to main content
16,006,902 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to save a PDF file whch is opened on IE? Pin
Christian Graus25-Aug-09 20:55
protectorChristian Graus25-Aug-09 20:55 
AnswerRe: How to save a PDF file whch is opened on IE? Pin
Saksida Bojan25-Aug-09 23:20
Saksida Bojan25-Aug-09 23:20 
QuestionI get an error while i try to run. Pin
ralphigo25-Aug-09 20:21
ralphigo25-Aug-09 20:21 
AnswerRe: I get an error while i try to run. Pin
Christian Graus25-Aug-09 20:28
protectorChristian Graus25-Aug-09 20:28 
AnswerRe: I get an error while i try to run. Pin
Christian Graus25-Aug-09 20:29
protectorChristian Graus25-Aug-09 20:29 
GeneralRe: I get an error while i try to run. Pin
ralphigo25-Aug-09 20:57
ralphigo25-Aug-09 20:57 
GeneralRe: I get an error while i try to run. Pin
Christian Graus25-Aug-09 21:06
protectorChristian Graus25-Aug-09 21:06 
QuestionMultiple Thread not running at same time Pin
Abdul Rahman Hamidy25-Aug-09 19:36
Abdul Rahman Hamidy25-Aug-09 19:36 
Dear All,
i have following code to run 34 activities at same time, but it seems it doesent.
foreach(ListViewItem prv in des.lProvinces.CheckedItems)
			{
				if (prv.Text.Equals("All"))
				    continue;
				pmuAccessPath=string.Format("{0}\\{1}\\NSPDatabase.mdb",des.DestinationFolder,prv.Text.Trim());
				if (!Directory.Exists(Path.GetDirectoryName(pmuAccessPath)))
					Directory.CreateDirectory(Path.GetDirectoryName(pmuAccessPath));
				if (!File.Exists(pmuAccessPath))
					File.Copy(des.SourceAccessPath,pmuAccessPath);
				Finish fin=new Finish();
				pnlControls.Controls.Add(fin);
				fin.Dock=DockStyle.Top;
				fin.lblProvince.Text=string.Format("Province :  ({0})",prv.Text);
				fin.lblProvince.Refresh();
				Triplet triplet=new Triplet(fin,pmuAccessPath,prv.Tag);
				ThreadPool.QueueUserWorkItem(new WaitCallback(runMultiple),(object)triplet);
				Thread.Sleep(50);
}

the method runMultiple, queries some tables from sql server 2005 and then inserts those into Access Database.
count of items is 34, for the first time it performs all but then it stops and executes only one by one.
like one gets finished and another starts.
i want to all should run at same time?

Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan

AnswerRe: Multiple Thread not running at same time Pin
N a v a n e e t h25-Aug-09 19:56
N a v a n e e t h25-Aug-09 19:56 
GeneralRe: Multiple Thread not running at same time [modified] Pin
Abdul Rahman Hamidy25-Aug-09 19:59
Abdul Rahman Hamidy25-Aug-09 19:59 
GeneralRe: Multiple Thread not running at same time Pin
N a v a n e e t h25-Aug-09 20:09
N a v a n e e t h25-Aug-09 20:09 
GeneralRe: Multiple Thread not running at same time Pin
Abdul Rahman Hamidy25-Aug-09 20:16
Abdul Rahman Hamidy25-Aug-09 20:16 
QuestionRelease Photo Pin
sanforjackass25-Aug-09 19:25
sanforjackass25-Aug-09 19:25 
AnswerRe: Release Photo Pin
Christian Graus25-Aug-09 19:32
protectorChristian Graus25-Aug-09 19:32 
QuestionRe: Release Photo Pin
sanforjackass25-Aug-09 19:46
sanforjackass25-Aug-09 19:46 
AnswerRe: Release Photo Pin
Hum Dum25-Aug-09 19:55
Hum Dum25-Aug-09 19:55 
QuestionRe: Release Photo Pin
sanforjackass25-Aug-09 20:10
sanforjackass25-Aug-09 20:10 
AnswerRe: Release Photo Pin
Hum Dum25-Aug-09 20:18
Hum Dum25-Aug-09 20:18 
QuestionRe: Release Photo Pin
sanforjackass25-Aug-09 20:29
sanforjackass25-Aug-09 20:29 
QuestionRe: Release Photo Pin
sanforjackass25-Aug-09 20:52
sanforjackass25-Aug-09 20:52 
AnswerRe: Release Photo Pin
Henry Minute25-Aug-09 21:59
Henry Minute25-Aug-09 21:59 
GeneralRe: Release Photo Pin
sanforjackass26-Aug-09 2:16
sanforjackass26-Aug-09 2:16 
QuestionHelp needed with simple Web Spider Code Pin
manormi125-Aug-09 16:02
manormi125-Aug-09 16:02 
AnswerRe: Help needed with simple Web Spider Code Pin
N a v a n e e t h25-Aug-09 16:41
N a v a n e e t h25-Aug-09 16:41 
QuestionimageList images appear to be getting "corrupted" Pin
shultas25-Aug-09 14:54
shultas25-Aug-09 14:54 

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.