A Spinner Control in C#

11 September, 2008 (10:34) | .net

For tasks of an undeterminable length, we see ’spinners’ being used to indicate that something is in progress and that our applications haven’t stopped. I needed one, and so knocked one up:



It’s written in C# and I’ve posted the source code here. It uses GDI+ to render the control as opposed to using a series of bitmaps, and it allows you to configure the number of segments drawn.

Please post any feedback in the comments below.

Write a comment