Threading with VB 2005


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Threading with VB 2005

  1. #1
    Join Date
    Feb 2005
    Posts
    46

    Threading with VB 2005

    Hi,

    I have an application that uses the FileSystemWatcher. When a file changes, I have an event that gets called and processes everything accordingly. This is all done by default on a separate thread from the application thread. My problem is that VB 2005 doesn't like it when you change values on the UI Thread from a separate thread (the FilesystemWatcher thread).

    Is there a way I can call a function from the FSW thread, but have it run on the UI Thread? If not, does anyone know how I could work around this problem and update my GUI when the FSW event is called?

    Thanks,

    Luc

  2. #2
    Join Date
    Nov 2004
    Location
    Oslo
    Posts
    73
    Search for Invoke/BeginInvoke
    oes

  3. #3
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Data binding navigator VB 2005
    By Franco22 in forum .NET
    Replies: 0
    Last Post: 02-23-2006, 12:31 AM
  2. .NET vs. Enterprise Java: Who's Got Better Security?
    By Glen Kunene in forum Talk to the Editors
    Replies: 17
    Last Post: 03-23-2002, 12:43 AM
  3. Threading in VB - extra problem ??
    By cksiow in forum VB Classic
    Replies: 0
    Last Post: 06-19-2001, 11:39 PM
  4. Threading in VB
    By cksiow in forum VB Classic
    Replies: 0
    Last Post: 06-18-2001, 09:53 PM
  5. VB?? Visually BAD??
    By pnichols in forum Java
    Replies: 5
    Last Post: 12-27-2000, 12:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center