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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. How to run each message loop in a seperate thread ?

How to run each message loop in a seperate thread ?

Scheduled Pinned Locked Moved .NET (Core and Framework)
questionc++tutorial
2 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.
  • K Offline
    K Offline
    Ky Nam
    wrote on last edited by
    #1

    Hello I want each created System.Windows.Forms.NativeWindow run in its own thread These native windows are message-only windows and created with this System.Windows.Forms.CreateParams : Sub New() Dim CP As New CreateParams 'CP.ClassName = "Message" CP.Parent = HWND_MESSAGE MyBase.CreateHandle(CP) End Sub How can i do ?

    P 1 Reply Last reply
    0
    • K Ky Nam

      Hello I want each created System.Windows.Forms.NativeWindow run in its own thread These native windows are message-only windows and created with this System.Windows.Forms.CreateParams : Sub New() Dim CP As New CreateParams 'CP.ClassName = "Message" CP.Parent = HWND_MESSAGE MyBase.CreateHandle(CP) End Sub How can i do ?

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      You can specify the procedure/sub in the CreateThread, me thinks. But, I'd be careful about multithreads over form controls since it is not really thread safe...

      "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

      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