Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
AnswerRe: MS Access Class Generator? Pin
PIEBALDconsult13-Aug-09 8:01
mvePIEBALDconsult13-Aug-09 8:01 
GeneralRe: MS Access Class Generator? Pin
Etienne_12318-Aug-09 1:09
Etienne_12318-Aug-09 1:09 
GeneralRe: MS Access Class Generator? Pin
JWilliams@SWCG28-Sep-09 2:22
JWilliams@SWCG28-Sep-09 2:22 
GeneralRe: MS Access Class Generator? Pin
Etienne_12328-Sep-09 4:11
Etienne_12328-Sep-09 4:11 
GeneralRe: MS Access Class Generator? Pin
JWilliams@SWCG28-Sep-09 9:15
JWilliams@SWCG28-Sep-09 9:15 
QuestionDatagrid location on print page Pin
spankyleo12312-Aug-09 22:18
spankyleo12312-Aug-09 22:18 
AnswerRe: Datagrid location on print page Pin
Henry Minute13-Aug-09 3:43
Henry Minute13-Aug-09 3:43 
QuestionAbort or Stop Thread using c# Pin
Abdul Rahman Hamidy12-Aug-09 21:36
Abdul Rahman Hamidy12-Aug-09 21:36 
I have following code in my start button which starts the process.
void BtnStartClick(object sender, EventArgs e)
		{
			btnStart.Enabled=pdfStopped=xmlStopped=false;
			btnStop.Enabled=true;
			ThreadPool.QueueUserWorkItem(new WaitCallback(Startup));
		}
		void Startup(object s)
		{
			try
			{
				Start();
				timGeneral.Enabled=true;
				timGeneral.Start();
			}
			catch(Exception){}
		}
		void Start()
        {
			pdfThread=new Thread(new ThreadStart(pdfDownloadStart));
			pdfThread.IsBackground=true;
			pdfThread.Start();
			xmlThread=new Thread(new ThreadStart(startXMLDownload));
			xmlThread.IsBackground=true;
			xmlThread.Start();
		    pdfStThread = new Thread(new ThreadStart(createPdfFileStructure));
            pdfStThread.IsBackground = true;
            pdfStThread.Start();
        }

well i am trying to stop all these running threads in stop button, but i could not achieve it
how can i stop all threads?

Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan

AnswerRe: Abort or Stop Thread using c# Pin
stancrm12-Aug-09 21:49
stancrm12-Aug-09 21:49 
GeneralRe: Abort or Stop Thread using c# Pin
OriginalGriff12-Aug-09 21:50
mveOriginalGriff12-Aug-09 21:50 
GeneralRe: Abort or Stop Thread using c# Pin
Abdul Rahman Hamidy12-Aug-09 22:02
Abdul Rahman Hamidy12-Aug-09 22:02 
GeneralRe: Abort or Stop Thread using c# Pin
stancrm12-Aug-09 22:56
stancrm12-Aug-09 22:56 
GeneralRe: Abort or Stop Thread using c# Pin
Abdul Rahman Hamidy13-Aug-09 0:18
Abdul Rahman Hamidy13-Aug-09 0:18 
GeneralRe: Abort or Stop Thread using c# Pin
stancrm13-Aug-09 1:33
stancrm13-Aug-09 1:33 
AnswerRe: Abort or Stop Thread using c# Pin
OriginalGriff12-Aug-09 21:49
mveOriginalGriff12-Aug-09 21:49 
AnswerRe: Abort or Stop Thread using c# Pin
0x3c012-Aug-09 22:57
0x3c012-Aug-09 22:57 
QuestionCustom Event and Cross-thread operation not valid Question Pin
Programm3r12-Aug-09 21:22
Programm3r12-Aug-09 21:22 
AnswerRe: Custom Event and Cross-thread operation not valid Question Pin
N a v a n e e t h13-Aug-09 1:25
N a v a n e e t h13-Aug-09 1:25 
QuestionRe: Custom Event and Cross-thread operation not valid Question Pin
Programm3r13-Aug-09 1:35
Programm3r13-Aug-09 1:35 
Questioninvoking events of a control under another control Pin
jamesjk12-Aug-09 20:27
jamesjk12-Aug-09 20:27 
AnswerRe: invoking events of a control under another control Pin
Eslam Afifi12-Aug-09 21:34
Eslam Afifi12-Aug-09 21:34 
GeneralRe: invoking events of a control under another control Pin
jamesjk13-Aug-09 0:02
jamesjk13-Aug-09 0:02 
GeneralRe: invoking events of a control under another control Pin
Eslam Afifi13-Aug-09 18:05
Eslam Afifi13-Aug-09 18:05 
GeneralRe: invoking events of a control under another control Pin
jamesjk13-Aug-09 22:05
jamesjk13-Aug-09 22:05 
GeneralRe: invoking events of a control under another control Pin
Eslam Afifi14-Aug-09 2:58
Eslam Afifi14-Aug-09 2:58 

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.