Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. System.Windows.Form equivalent of PeekMessage()

System.Windows.Form equivalent of PeekMessage()

Scheduled Pinned Locked Moved C#
csharpwinformscomdata-structurestools
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ravi Bhavnani
    wrote on last edited by
    #1

    I'm implementing poor man's multithreading and need a way for a progress callback (delegate) to be able to pump the form's message queue so that it can check if the user has checked an "Abort" checkbox, thereby causing an ongoing computation to quit. In Win32, we used to pump the GUI's message queue using PeekMessage(). What's the appropriate analog in the WinForms world? Thanks, /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

    J 1 Reply Last reply
    0
    • R Ravi Bhavnani

      I'm implementing poor man's multithreading and need a way for a progress callback (delegate) to be able to pump the form's message queue so that it can check if the user has checked an "Abort" checkbox, thereby causing an ongoing computation to quit. In Win32, we used to pump the GUI's message queue using PeekMessage(). What's the appropriate analog in the WinForms world? Thanks, /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

      J Offline
      J Offline
      joe carbone
      wrote on last edited by
      #2

      Hi Ravi the analog call of PeekMessage is BeginnInvoke.

      R 1 Reply Last reply
      0
      • J joe carbone

        Hi Ravi the analog call of PeekMessage is BeginnInvoke.

        R Offline
        R Offline
        Ravi Bhavnani
        wrote on last edited by
        #3

        Thanks, Joe! Senthil's article[^] proved to be very educational! /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups