evios 0 Junior Poster in Training

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.

If e.ChangeType = IO.WatcherChangeTypes.Created Then
            txt_folderactivity.Text &= "File " & e.FullPath & _
                        " has been created" & vbCrLf
        End If
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.