Click here to Skip to main content
15,912,665 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to restrict users from setting focus to multiple cells in DataGridView ? Pin
Henry Minute29-Aug-09 7:51
Henry Minute29-Aug-09 7:51 
Questionprint a image and text without using printer driver. using C#.NET Pin
shaktisinh29-Aug-09 3:57
shaktisinh29-Aug-09 3:57 
AnswerRe: print a image and text without using printer driver. using C#.NET Pin
Dave Kreskowiak29-Aug-09 5:47
mveDave Kreskowiak29-Aug-09 5:47 
GeneralRe: print a image and text without using printer driver. using C#.NET Pin
shaktisinh30-Aug-09 23:54
shaktisinh30-Aug-09 23:54 
GeneralRe: print a image and text without using printer driver. using C#.NET Pin
Dave Kreskowiak31-Aug-09 1:01
mveDave Kreskowiak31-Aug-09 1:01 
QuestionUI Not Responsive Pin
Abdul Rahman Hamidy29-Aug-09 1:35
Abdul Rahman Hamidy29-Aug-09 1:35 
AnswerRe: UI Not Responsive Pin
Dave Kreskowiak29-Aug-09 5:23
mveDave Kreskowiak29-Aug-09 5:23 
GeneralRe: UI Not Responsive Pin
Abdul Rahman Hamidy29-Aug-09 20:48
Abdul Rahman Hamidy29-Aug-09 20:48 
Well, this is real code.
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.Delete(Path.GetDirectoryName(pmuAccessPath),true);
					Directory.CreateDirectory(Path.GetDirectoryName(pmuAccessPath));
					if (!File.Exists(pmuAccessPath))
						File.Copy(des.SourceAccessPath,pmuAccessPath);
					
					Triplet triplet=new Triplet(prv.Text,pmuAccessPath,prv.Tag);
					Thread t=new Thread(new ParameterizedThreadStart(runMultiple));
					t.IsBackground=true;
					t.Start((object)triplet);
}
delegate void run(object var);
		void runMultiple(object varr)
		{
			if (InvokeRequired)
			{
				BeginInvoke(new run(runMultiple),varr);
				return;
			}
			//Code for creating Control
			Triplet variables=varr as Triplet;
			string prv=variables.First.ToString();
			Finish fin=new Finish();
			pnlControls.Controls.Add(fin);
			fin.Dock=DockStyle.Top;
			fin.lblProvince.Text=string.Format("Province :  ({0})",prv);
			fin.lblProvince.Refresh();
			string query=string.Empty;
			byte tableCount=43;
			string pmuAccessPath=variables.Second.ToString();
			int prvId=Convert.ToInt16(variables.Third.ToString());
//do heavy coding here
//Application.DoEvent();
}

based on my idea, all thread should run at same time, but in this case it doesent.as i told n msg that if i remove the code "Application.DoEvent()" the interface is totaly stack, but if i use that code then every thing is responsive, while my last action is done first and then it continues.
but bothering is that only one thread runs at atime, i can see running threads in progress bar.

Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan

Questionhow to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
pallaka28-Aug-09 23:44
pallaka28-Aug-09 23:44 
AnswerRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
OriginalGriff28-Aug-09 23:53
mveOriginalGriff28-Aug-09 23:53 
GeneralRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
pallaka29-Aug-09 0:09
pallaka29-Aug-09 0:09 
GeneralRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
OriginalGriff29-Aug-09 0:29
mveOriginalGriff29-Aug-09 0:29 
AnswerRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
Luc Pattyn29-Aug-09 0:35
sitebuilderLuc Pattyn29-Aug-09 0:35 
GeneralRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
pallaka29-Aug-09 1:21
pallaka29-Aug-09 1:21 
GeneralRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
Luc Pattyn29-Aug-09 1:42
sitebuilderLuc Pattyn29-Aug-09 1:42 
GeneralRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
Dave Kreskowiak29-Aug-09 5:13
mveDave Kreskowiak29-Aug-09 5:13 
GeneralRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
Luc Pattyn29-Aug-09 5:37
sitebuilderLuc Pattyn29-Aug-09 5:37 
GeneralRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
mustang8629-Aug-09 12:21
mustang8629-Aug-09 12:21 
GeneralRe: how to connect 9 pin serial port plug to itself so tha one can recive the data in the 2nd Pin andtransmit in 3rd pin Pin
mustang8629-Aug-09 18:10
mustang8629-Aug-09 18:10 
Questionprogram in c# Pin
ayushibasant28-Aug-09 23:39
ayushibasant28-Aug-09 23:39 
AnswerRe: program in c# Pin
OriginalGriff28-Aug-09 23:50
mveOriginalGriff28-Aug-09 23:50 
AnswerRe: program in c# Pin
Super Lloyd28-Aug-09 23:57
Super Lloyd28-Aug-09 23:57 
AnswerRe: program in c# Pin
Rajesh R Subramanian29-Aug-09 1:20
professionalRajesh R Subramanian29-Aug-09 1:20 
QuestionClose MDI Parent Form Pin
Rahul DSG28-Aug-09 23:06
Rahul DSG28-Aug-09 23:06 
AnswerRe: Close MDI Parent Form Pin
Not Active28-Aug-09 23:24
mentorNot Active28-Aug-09 23:24 

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.