Click here to Skip to main content
15,888,119 members
Home / Discussions / C#
   

C#

 
GeneralRe: translating on-screen width to printed width Pin
TimWallace28-Oct-09 11:07
TimWallace28-Oct-09 11:07 
QuestionGeneric Collection vs ArrayList Pin
Kevin Marois28-Oct-09 9:23
professionalKevin Marois28-Oct-09 9:23 
AnswerRe: Generic Collection vs ArrayList Pin
Henry Minute28-Oct-09 9:45
Henry Minute28-Oct-09 9:45 
AnswerRe: Generic Collection vs ArrayList Pin
Paulo Zemek28-Oct-09 10:41
mvaPaulo Zemek28-Oct-09 10:41 
AnswerRe: Generic Collection vs ArrayList Pin
PIEBALDconsult28-Oct-09 11:37
mvePIEBALDconsult28-Oct-09 11:37 
JokeRe: Generic Collection vs ArrayList Pin
Mycroft Holmes28-Oct-09 15:07
professionalMycroft Holmes28-Oct-09 15:07 
Questionthreading Pin
sajjy28-Oct-09 8:18
sajjy28-Oct-09 8:18 
AnswerRe: threading Pin
Paulo Zemek28-Oct-09 10:45
mvaPaulo Zemek28-Oct-09 10:45 
Thread myThread = new Thread(nameOfTheFunctionToExecuteHere);
myThread.Start();

This is enough to create a new thread and start it. You can, of course, set the name of the thread, the priority etc.

The nameOfTheFunctionToExecuteHere must be in the pattern:
void nameOfTheFunctionToExecuteHere()
{
}

or static void nameOfTheFunctionToExecuteHere()
{
}

You can also use void nameOfTheFunctionToExecuteHere(object parameter) but, in that case, you must call myThread.Start(parameter).


This will create an entire new thread. For small work that does not wait for any external events it is recommented that you use the ThreadPool.

To do that, call ThreadPool.QueueUserWorkItem(methodNameHere);

This will use reutilize the threads from the ThreadPool (it is faster than creating a full thread), but the ThreadPool is limited, so you must not "block undefinitelly" in these threads.

There are other differences, but I think you will find it by yourself.
QuestionThe specified network name is no longer available. Pin
DanielWehrle28-Oct-09 8:15
DanielWehrle28-Oct-09 8:15 
AnswerRe: The specified network name is no longer available. Pin
Paulo Zemek28-Oct-09 10:49
mvaPaulo Zemek28-Oct-09 10:49 
QuestionNamed Pipe reading very slowly Pin
akhanal28-Oct-09 6:08
akhanal28-Oct-09 6:08 
AnswerRe: Named Pipe reading very slowly [modified] Pin
akhanal28-Oct-09 7:20
akhanal28-Oct-09 7:20 
GeneralRe: Named Pipe reading very slowly Pin
Paulo Zemek28-Oct-09 10:54
mvaPaulo Zemek28-Oct-09 10:54 
GeneralRe: Named Pipe reading very slowly Pin
akhanal28-Oct-09 11:21
akhanal28-Oct-09 11:21 
GeneralRe: Named Pipe reading very slowly Pin
Paulo Zemek29-Oct-09 1:11
mvaPaulo Zemek29-Oct-09 1:11 
Question"View Only" mode for WebBrowser class? Pin
Matthew Klein28-Oct-09 6:03
Matthew Klein28-Oct-09 6:03 
AnswerRe: "View Only" mode for WebBrowser class? Pin
EliottA28-Oct-09 6:45
EliottA28-Oct-09 6:45 
GeneralRe: "View Only" mode for WebBrowser class? Pin
Matthew Klein28-Oct-09 7:50
Matthew Klein28-Oct-09 7:50 
GeneralRe: "View Only" mode for WebBrowser class? Pin
EliottA28-Oct-09 8:43
EliottA28-Oct-09 8:43 
QuestionDeveloping LogonUI With C# ? Pin
Sehlor28-Oct-09 4:27
Sehlor28-Oct-09 4:27 
AnswerRe: Developing LogonUI With C# ? Pin
Abhishek Sur28-Oct-09 5:19
professionalAbhishek Sur28-Oct-09 5:19 
Questionrelated to crystal report Pin
NarendraSinghJTV28-Oct-09 3:31
NarendraSinghJTV28-Oct-09 3:31 
AnswerRe: related to crystal report Pin
karthiknss29-Oct-09 22:42
karthiknss29-Oct-09 22:42 
GeneralRe: related to crystal report Pin
NarendraSinghJTV1-Nov-09 23:06
NarendraSinghJTV1-Nov-09 23:06 
QuestionNULLABLE type Pin
RINSON VARGHESE28-Oct-09 2:48
RINSON VARGHESE28-Oct-09 2:48 

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.