943,511 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 1962
  • VB.NET RSS
May 11th, 2008
0

cross thread operation invalid

Expand Post »
I get this error message when i create a new file: (using filesystemwatcher() )

Cross thread operation not valid: Control 'txt_folderactivity" acessed from a thread other than the thread it was created on.

VB.NET Syntax (Toggle Plain Text)
  1. If e.ChangeType = IO.WatcherChangeTypes.Created Then
  2. txt_folderactivity.Text &= "File " & e.FullPath & _
  3. " has been created" & vbCrLf
  4. End If
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
evios is offline Offline
60 posts
since Sep 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Reference types
Next Thread in VB.NET Forum Timeline: Excel





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC