Currently i am using a simple PictureBox
with GIF file
inside and wonder if this is possible and if it does what the differences between this 2 options
This is what i have at this moment using PictureBox
:
pictureBox1.BringToFront();
pictureBox1.Dock = DockStyle.None;
pictureBox1.Visible = true;
You can try hosting SilverLight inside Winforms.
While SilverLight is intended to be used in a web browser, WPF is more native to desktop, and WPF does have a simimar BusyIndicator, it is downloadable from CodePlex-Extended WPF Toolkit.
First define a WPF user control
MyBusyIndicator
.Then you can host this user control in Winform using an
ElementHost
, first you add theElementHost
from Form's designer, and in Form's constructorThe differences:
While
BusyIndicator
comes with some properties to let you customize the indicator, it adds a dependency on SL or WPF. WithPictureBox
all you need to do is preparing animated GIFs. There are many tools for generating animated GIFs.