How to name a thread?

  • Thread starter Thread starter Brett
  • Start date Start date
B

Brett

In form_load(), I do this
Thread.CurrentThread.Name = "MainThread"

However, in the debugger thread window, I see:

<No Name> appname.Classname.Form1_load Normal 0

Why does it still have <No Name>? Which name is that?

Thanks,
Brett
 
April 7, 2005

I believe this is happening, because the line with <No Name> gets written
Before your code runs. I think that the line is written as it Starts
Form_Load and Not after the code in form_load has run. Just a theory. Good
luck!


Joseph MCAD
 
Back
Top