<guy> schrieb:
I have read a lot about that I can't do something like
TextBox1.text ="abc"
if I am not in the gui thread. Can someone explain what
I actually need to do?
Always show your forms in the app's main UI thread and use 'Control.Invoke'
to communicate in the thread -> UI direction:
Multithreading:
<URL:http://msdn.microsoft.com/library/en-us/dnforms/html/winforms06112002.asp>
<URL:http://msdn.microsoft.com/library/en-us/dnforms/html/winforms08162002.asp>
<URL:http://msdn.microsoft.com/library/en-us/dnforms/html/winforms01232003.asp>
<URL:http://www.devx.com/dotnet/Article/11358/>
<URL:http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWindowsFormsControlClassInvokeTopic.asp >
Multithreading in Visual Basic .NET (Visual Basic Language Concepts)
<URL:http://msdn.microsoft.com/library/en-us/vbcn7/html/vaconthreadinginvisualbasic.asp>
Sample:
<URL:http://dotnet.mvps.org/dotnet/samples/filesystem/downloads/FileSystemEnumerator.zip>
If you have any further questions, feel free to ask them.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>