Results 1 to 3 of 3

Thread: Threading Question...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2002
    Posts
    382

    Threading Question...

    When you click a button or menu option on your main application, does it run on the same MAIN application UI thread? Or does it spawn a new thread?

    Or does it invoke the call on the UI thread, and if so is it a blocked or unblocked invoked call?

    Hinder

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: Threading Question...

    Quote Originally Posted by Hinder
    When you click a button or menu option on your main application, does it run on the same MAIN application UI thread? Or does it spawn a new thread?

    Or does it invoke the call on the UI thread, and if so is it a blocked or unblocked invoked call?

    Hinder
    it'd make sense that it'd run on the same MAIN thread
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718

    Re: Threading Question...

    Everything you do unless explicitly coded to do otherwise runs in the Form's UI thread.

    Which is why if you do a large loop and take the focus away from the form, look at something else and come back to it, it's just white until it finishes the loop and you can't click a stop button.
    I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)

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