Question : How Do I create a "Busy" dialog box?

Im developing a Windows (NOT internet based) application using Visual C# and Visual Studio. My program does a lot of processing and sometimes it may look to the user as though its stuck in an infinite loop or something. The only thing that is displayed is the Windows (Vista)  busy revolving  circle thingie. Ideally Id like a dialog box to be displayed that says "Dont panic, everything is working OK. Just be patient!".

Can someone explain how I do this? Thanks.

Answer : How Do I create a "Busy" dialog box?

Well.
The code above works for me. I ma using C++. Please try to call DoEvents() function to let the system process all messages before you run your time expensive code. Maybe the system hasn't enough time to show the form.
Good luck.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
	private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) 
			 {
			  
			  busy frm;
				frm.Show();
				Application::DoEvents();
				System::Threading::Thread::Sleep(2000);
         			MessageBox::Show("Finished");
			 }
	};
}
Open in New Window Select All
Random Solutions  
 
programming4us programming4us