Click here to Skip to main content
12,065,316 members (41,770 online)


AnswerRe: SaveFileDialog and OverwritePrompt Pin
micke.andersson28-Jan-13 3:44
membermicke.andersson28-Jan-13 3:44 
GeneralRe: SaveFileDialog and OverwritePrompt Pin
GenJerDan28-Jan-13 4:10
memberGenJerDan28-Jan-13 4:10 
QuestionThread with Message Pump Pin
Richard Andrew x6424-Jan-13 2:56
memberRichard Andrew x6424-Jan-13 2:56 
AnswerRe: Thread with Message Pump Pin
Eddy Vluggen24-Jan-13 3:49
mvpEddy Vluggen24-Jan-13 3:49 
Richard Andrew x64 wrote:
1. Create a hidden Form and override the WndProc function?

No, that thread is meant to handle the UI. It'll hang (along with the UI) if it's already busy, as stated in point 2.

Richard Andrew x64 wrote:
2. Use a Background Worker? (The problem with the Background Worker is that you can't send it a message if it's already busy.)

One can only process one thing at a time. You could consider queuing the request, or to use multiple threads.

Richard Andrew x64 wrote:
3. Use a loop with an AutoResetEvent to wait for new messages?

Loop within a Thread[^] from the ThreadPool. Easiest would be to check for new items at the begin of the loop Smile | :)
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]
They hate us for our freedom![^]

AnswerRe: Thread with Message Pump Pin
Paulo Zemek24-Jan-13 4:49
memberPaulo Zemek24-Jan-13 4:49 
AnswerRe: Thread with Message Pump Pin
BobJanova24-Jan-13 5:22
memberBobJanova24-Jan-13 5:22 
QuestionEnding session and back button after logout Pin
raviwebwonders24-Jan-13 1:24
groupraviwebwonders24-Jan-13 1:24 
AnswerRe: Ending session and back button after logout Pin
Simon_Whale24-Jan-13 1:36
memberSimon_Whale24-Jan-13 1:36 
GeneralRe: Ending session and back button after logout Pin
sahavasiwebwonders24-Jan-13 1:41
groupsahavasiwebwonders24-Jan-13 1:41 
AnswerRe: Ending session and back button after logout Pin
BobJanova24-Jan-13 2:28
memberBobJanova24-Jan-13 2:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Advertise | Privacy | Mobile
Web04 | 2.8.160204.4 | Last Updated 7 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid