Click here to Skip to main content
15,923,689 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestiontoolStripSplitButton Doesn;t comes in Pressed state. Pin
Member 404145831-Jan-10 22:54
Member 404145831-Jan-10 22:54 
AnswerRe: toolStripSplitButton Doesn;t comes in Pressed state. Pin
Eddy Vluggen1-Feb-10 0:57
professionalEddy Vluggen1-Feb-10 0:57 
GeneralRe: toolStripSplitButton Doesn;t comes in Pressed state. Pin
Member 40414581-Feb-10 17:57
Member 40414581-Feb-10 17:57 
GeneralRe: toolStripSplitButton Doesn;t comes in Pressed state. Pin
Eddy Vluggen2-Feb-10 3:18
professionalEddy Vluggen2-Feb-10 3:18 
Questioncreate IM Pin
rockracker28-Jan-10 14:18
rockracker28-Jan-10 14:18 
AnswerRe: create IM Pin
Garth J Lancaster28-Jan-10 15:17
professionalGarth J Lancaster28-Jan-10 15:17 
AnswerRe: create IM Pin
Luc Pattyn28-Jan-10 15:43
sitebuilderLuc Pattyn28-Jan-10 15:43 
GeneralRe: create IM Pin
Mycroft Holmes6-Feb-10 0:09
professionalMycroft Holmes6-Feb-10 0:09 
QuestionExport datagridview to MS Excell Pin
Tufail Ahmad27-Jan-10 23:37
Tufail Ahmad27-Jan-10 23:37 
AnswerRe: Export datagridview to MS Excell Pin
Aman Bhullar28-Jan-10 0:16
Aman Bhullar28-Jan-10 0:16 
AnswerRe: Export datagridview to MS Excell Pin
Dan Mos28-Jan-10 13:48
Dan Mos28-Jan-10 13:48 
QuestionThis might not be possible... Pin
Steven M Hunt26-Jan-10 10:12
Steven M Hunt26-Jan-10 10:12 
AnswerRe: This might not be possible... Pin
Eddy Vluggen27-Jan-10 1:51
professionalEddy Vluggen27-Jan-10 1:51 
GeneralRe: This might not be possible... Pin
Steven M Hunt27-Jan-10 6:48
Steven M Hunt27-Jan-10 6:48 
GeneralRe: This might not be possible... Pin
Eddy Vluggen27-Jan-10 6:49
professionalEddy Vluggen27-Jan-10 6:49 
GeneralRe: This might not be possible... Pin
Giorgi Dalakishvili28-Jan-10 2:02
mentorGiorgi Dalakishvili28-Jan-10 2:02 
AnswerRe: This might not be possible... Pin
Ray Cassick27-Jan-10 6:45
Ray Cassick27-Jan-10 6:45 
QuestionProblem binding arraylist to combobox Pin
Nigel Mackay25-Jan-10 18:56
Nigel Mackay25-Jan-10 18:56 
AnswerRe: Problem binding arraylist to combobox Pin
Luc Pattyn26-Jan-10 1:22
sitebuilderLuc Pattyn26-Jan-10 1:22 
QuestionConnecting with webserver? Pin
amnewone25-Jan-10 10:26
amnewone25-Jan-10 10:26 
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 
Hello everybody,

(after pressing a button) i would like to show an image (using a picturebox), wait a few seconds and then play a
mp3 sound, but i dont get it to work. To wait a few seconds i use "System.Threading.Thread.Sleep(5000)". The problem is, the image alway appears AFTER the wait time, but i want it to show first, then wait, then play the mp3... i tried to use "WaitOnLoad = true" but it doesnt work, shouldn't it load the image first and the continue to read the next code line ??

Here is the code i've tried, that doesnt work:

private void button1_Click(object sender, EventArgs e)
{
pictureBox1.WaitOnLoad = true;
pictureBox1.Load("image.jpg");


System.Threading.Thread.Sleep(5000);


MessageBox.Show("test"); //just to test, here should be the code to play the mp3
}


(i also tried loading the image with "LoadAsync" and put the code to wait and play the mp3 in the "LoadCompleted" event, but that doesnt work either...)

would be very nice if somebody helps me

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.