-1

I have Windows Forms application and while some operation is in progress i want to show Spinning Wheel:

http://preloaders.net/en/search/circle

So i created pictureBox and while my operation is in progress i want to see that Wheel but i want it to seen like in web pages, i want it over my controllers at the middle of the application and if it possible i want the rest of my application become vague. is it possible ?

user3271698
  • 145
  • 3
  • 9
  • 19
  • 3
    What's different than your previous question [Show "Spinning Wheel” over my Windows Forms application](http://stackoverflow.com/q/21990824/719186)? – LarsTech Feb 24 '14 at 16:35

1 Answers1

0

Simple solution:

pictureBox1.BringToFront();
pictureBox1.Dock = DockStyle.Fill;

Another option is transparent background and FormBorderStyle set to None. Show this form with ShowDialog() to avoid interaction with main form while it is shown.

NOTE: WinForms is not a Web application. Usually when you have some background process, then you set waiting cursor and disable controls. If you want to display progress, then can use ProgressBar.

Community
  • 1
  • 1
Sergey Berezovskiy
  • 232,247
  • 41
  • 429
  • 459