Click here to Skip to main content
15,920,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to customize PrintPreviewDialog in C# Pin
sachinkalse26-Apr-04 20:45
sachinkalse26-Apr-04 20:45 
GeneralRe: How to customize PrintPreviewDialog in C# Pin
Heath Stewart27-Apr-04 2:50
protectorHeath Stewart27-Apr-04 2:50 
GeneralPrint Preview & Print Pin
Anh_Tuan14-Apr-04 19:29
Anh_Tuan14-Apr-04 19:29 
GeneralRe: Print Preview & Print Pin
DougW4814-Apr-04 20:09
DougW4814-Apr-04 20:09 
GeneralRe: Print Preview & Print Pin
Heath Stewart15-Apr-04 4:07
protectorHeath Stewart15-Apr-04 4:07 
GeneralNumbers being rounded off! Pin
Aroogala14-Apr-04 18:23
Aroogala14-Apr-04 18:23 
GeneralRe: Numbers being rounded off! Pin
Heath Stewart15-Apr-04 4:04
protectorHeath Stewart15-Apr-04 4:04 
GeneralStart Thread with Parameters Pin
azusakt14-Apr-04 15:51
azusakt14-Apr-04 15:51 
Hi,

I would like to do some processes once I started the Thread, and I need to get back an ArryList that contains some file paths.
Is it possible to declare the Thread function with parameters passed in?
like :

<br />
  public void Starting()<br />
  {<br />
  ArrayList names = new ArrayList();<br />
  .....<br />
  outThread = new Thread(new ThreadStart( ThreadProc(ref names, docName) ));<br />
  outThread.IsBackground = true;<br />
  outThread.Start(); <br />
<br />
  while(outThread != null)<br />
  {<br />
    Application.DoEvents();<br />
  }<br />
  <br />
  (going to do other process by using the "names")  <br />
  .....<br />
    }<br />
<br />
<br />
<br />
  public void ThreadProc(ArrayList names, string docName)<br />
  { <br />
    (processing ....)<br />
<br />
    if(this.outThread != null)<br />
    {<br />
	outThread.Interrupt();<br />
	outThread = null;<br />
    }<br />
   }<br />



Could someone give me some hints ?
Thanks a lot
GeneralRe: Start Thread with Parameters Pin
Ed Obeda14-Apr-04 16:55
Ed Obeda14-Apr-04 16:55 
GeneralRe: Start Thread with Parameters Pin
Heath Stewart14-Apr-04 17:22
protectorHeath Stewart14-Apr-04 17:22 
QuestionForm across multiple monitor? Pin
pgfraz14-Apr-04 15:37
pgfraz14-Apr-04 15:37 
AnswerRe: Form across multiple monitor? Pin
Heath Stewart14-Apr-04 17:18
protectorHeath Stewart14-Apr-04 17:18 
QuestionDoes anyone know how to make a transparent tabpage? Pin
Flack14-Apr-04 15:30
Flack14-Apr-04 15:30 
AnswerRe: Does anyone know how to make a transparent tabpage? Pin
Carlos H. Perez14-Apr-04 16:44
Carlos H. Perez14-Apr-04 16:44 
GeneralRe: Does anyone know how to make a transparent tabpage? Pin
Flack15-Apr-04 7:41
Flack15-Apr-04 7:41 
QuestionAnyone used SQLite with C#? Pin
tsigo14-Apr-04 13:59
tsigo14-Apr-04 13:59 
GeneralCodeDomSerializer Question Pin
Jamie Nordmeyer14-Apr-04 12:28
Jamie Nordmeyer14-Apr-04 12:28 
GeneralFlex Grid in C# Pin
Greg Ward14-Apr-04 11:26
Greg Ward14-Apr-04 11:26 
GeneralRe: Flex Grid in C# Pin
Heath Stewart14-Apr-04 11:51
protectorHeath Stewart14-Apr-04 11:51 
GeneralRe: Flex Grid in C# Pin
Suelinda_W26-Apr-04 5:42
Suelinda_W26-Apr-04 5:42 
Generaldelegate and AppDomains Pin
VizOne14-Apr-04 11:24
VizOne14-Apr-04 11:24 
GeneralRe: delegate and AppDomains Pin
Heath Stewart14-Apr-04 12:00
protectorHeath Stewart14-Apr-04 12:00 
Generalaccess rows in order that they appear after sorting datagrid Pin
blakeb_114-Apr-04 10:50
blakeb_114-Apr-04 10:50 
GeneralRe: access rows in order that they appear after sorting datagrid Pin
Heath Stewart14-Apr-04 11:47
protectorHeath Stewart14-Apr-04 11:47 
GeneralRe: access rows in order that they appear after sorting datagrid Pin
blakeb_116-Apr-04 9:58
blakeb_116-Apr-04 9: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.