|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to name a thread?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 Show quoteHide quote "Brett" wrote: > 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 > > > If I write something like....
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load System.Threading.Thread.CurrentThread.Name = "MainThread" End Sub I set the name for my form's main thread. Check out the attached file Regards, Show quoteHide quote "Brett" <no@spam.net> escribió en el mensaje [attached file: Snapshot.JPG]news:uyYQNE%23OFHA.3356@TK2MSFTNGP12.phx.gbl... > 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 > >
Newbie Question - Please HELP!
dataset inheritance How to access aspx page thru the menu control only? Reading Output from Shell Command How to Move Mouse to Control with Focus conversion issue Remote debugging: Unable to map the debug start page URL to a machine name Outlook ContactItem.Display and .NET Reading color from a text file FromArgb Moving a windows form from a windows app to a class library. |
|||||||||||||||||||||||