I'm trying to get a File watcher to update a que class and then process the files squentially without any luck.

Private Sub FileSystemWatcher1_Changed(ByVal sender As System.Object, ByVal e As System.IO.FileSystemEventArgs) Handles QUEwatcher1.Created
    Dim i As String
    Dim myQ As System.Collections.Queue
    Dim Filename as string

   Filename = e.Name     ' e.name is the name of the file activacting
                                    'Filewatcher 
   i = Filename

    myQ.Enqueue(i)


    CountItemsQuelbl.text = myQ.Count()
    myQ.Peek()




End Sub

Are you getting any error?

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.