© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
❔ Processing window messages in while loop in console - C#
C
C#
•
3y ago
•
16 replies
krnlException
❔ Processing window messages in while loop in console
How do I process window messages while my code is in a
while(true)
while(true)
loop with
Thread.Sleep()
Thread.Sleep()
in console
? Because I need my code to run in a loop until user closes the window
.
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
62,338
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
while-loop
C
C# / help
4y ago
Processing incoming networking messages
C
C# / help
4y ago
Resizing the Console window - Console Application
C
C# / help
3y ago
while loop logic
C
C# / help
9mo ago