Results 1 to 2 of 2

Thread: AsyncCallback V's Threading

  1. #1

    Thread Starter
    Fanatic Member Bombdrop's Avatar
    Join Date
    Apr 2001
    Location
    St Helens, England, UK
    Posts
    667

    AsyncCallback V's Threading

    Hi all just wanting to get some other coders views on which to use, by that until now I have always used a thread to perform a data intensive task but as you are aware the need to use invoke if this process wishes to interact with the calling GUI. Today I came across AsyncCallback which if i understand it correctly works very much like a thread but allows for GUI updating without the hassle of checking for Begininvoke. SO what do you in your opinion think is "better" to use.

    Many thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: AsyncCallback V's Threading

    The AsyncCallback delegate references a method to execute when an asynchronous operation completes. You can't use it to interact with the GUI during an asynchronous operation.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width