Click here to Skip to main content
15,902,636 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: Connecting with webserver? Pin
Ravi Bhavnani25-Jan-10 11:09
professionalRavi Bhavnani25-Jan-10 11:09 
GeneralRe: Connecting with webserver? Pin
amnewone29-Jan-10 9:03
amnewone29-Jan-10 9:03 
AnswerRe: Connecting with webserver? Pin
Aman Bhullar28-Jan-10 0:18
Aman Bhullar28-Jan-10 0:18 
GeneralRe: Connecting with webserver? Pin
amnewone29-Jan-10 10:43
amnewone29-Jan-10 10:43 
QuestionHow to load an image, then wait a few seconds, then play a mp3 sound ? Pin
ibmkahm23-Jan-10 1:51
ibmkahm23-Jan-10 1:51 
AnswerRe: How to load an image, then wait a few seconds, then play a mp3 sound ? Pin
Geoff Williams23-Jan-10 2:33
Geoff Williams23-Jan-10 2:33 
GeneralRe: How to load an image, then wait a few seconds, then play a mp3 sound ? Pin
ibmkahm23-Jan-10 23:37
ibmkahm23-Jan-10 23:37 
GeneralRe: How to load an image, then wait a few seconds, then play a mp3 sound ? Pin
Luc Pattyn23-Jan-10 23:40
sitebuilderLuc Pattyn23-Jan-10 23:40 
calling DoEvents() like that is a hack one should avoid. There are two correct ways to solve such problems:
1. use a timer, preferably a System.Windows.Forms.Timer if the delayed action relates to the GUI;
2. use a separate thread (e.g. a BackgroundWorker), this time with proper Control.InvokeRequired/Imvoke (see here[^]).

Both take a little more effort, but will not fail you, as DoEvents() would when your app becomes somewhat more complex.

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
[The QA section does it automatically now, I hope we soon get it on regular forums as well]


GeneralRe: How to load an image, then wait a few seconds, then play a mp3 sound ? Pin
Mycroft Holmes24-Jan-10 1:39
professionalMycroft Holmes24-Jan-10 1:39 
GeneralRe: How to load an image, then wait a few seconds, then play a mp3 sound ? Pin
Luc Pattyn24-Jan-10 6:55
sitebuilderLuc Pattyn24-Jan-10 6:55 
AnswerSame question : same poster on StackOverFlow : Re: How to load an image Pin
BillWoodruff24-Jan-10 11:54
professionalBillWoodruff24-Jan-10 11:54 
GeneralRe: Same question : same poster on StackOverFlow : Re: How to load an image Pin
Luc Pattyn24-Jan-10 12:06
sitebuilderLuc Pattyn24-Jan-10 12:06 
AnswerRe: How to load an image, then wait a few seconds, then play a mp3 sound ? Pin
rockracker28-Jan-10 14:22
rockracker28-Jan-10 14:22 
Questiondisplay continuous data Pin
zaftblitz21-Jan-10 21:45
zaftblitz21-Jan-10 21:45 
AnswerRe: display continuous data Pin
Richard MacCutchan23-Jan-10 2:36
mveRichard MacCutchan23-Jan-10 2:36 
GeneralRe: display continuous data Pin
zaftblitz23-Jan-10 23:23
zaftblitz23-Jan-10 23:23 
GeneralRe: display continuous data Pin
Richard MacCutchan24-Jan-10 1:09
mveRichard MacCutchan24-Jan-10 1:09 
QuestionError when trying to write to .exe.config file Pin
imak15-Jan-10 8:12
imak15-Jan-10 8:12 
AnswerRe: Error when trying to write to .exe.config file Pin
Dave Kreskowiak15-Jan-10 8:23
mveDave Kreskowiak15-Jan-10 8:23 
GeneralRe: Error when trying to write to .exe.config file Pin
imak15-Jan-10 8:28
imak15-Jan-10 8:28 
GeneralRe: Error when trying to write to .exe.config file Pin
Dave Kreskowiak15-Jan-10 9:28
mveDave Kreskowiak15-Jan-10 9:28 
QuestionHow to change tip location on Quick Launch bar Pin
Corporal Agarn15-Jan-10 1:50
professionalCorporal Agarn15-Jan-10 1:50 
AnswerRe: How to change tip location on Quick Launch bar Pin
dan!sh 15-Jan-10 4:34
professional dan!sh 15-Jan-10 4:34 
GeneralRe: How to change tip location on Quick Launch bar Pin
Corporal Agarn15-Jan-10 4:45
professionalCorporal Agarn15-Jan-10 4:45 
QuestionI need an ebay program Pin
totolcm13-Jan-10 2:25
totolcm13-Jan-10 2:25 

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.