
Introduction
Have you ever wanted a simple easy to implement control to function as a loading bar? As a developer for .NET I was very displeased with the lack of an endless loading bar. So I decided to create my own control for me to use whenever I didn't know the amount of time something was going to take to load. This control can even be used as a spiffy UI element.
Implementing the Control
The use of this control is quite simple. Just right-click inside of your toolbox and select to add an item. Then click on the browse button and select the LoadingLineControlLibrary.dll included in the project files. Thats it! Now you have a LoadingLine toolbox item that you can use just like you would any other control.
Using the Control
Properties
- Color 1 - The First Color of the Control
- Color 2 - The Second Color of the Control
- Movement Type - The Movement of the Control
- Bounce
- Right to Left
- Left to Right
- Speed - The Speed at which the Control is Moving
- Scroller Size - The Size of the Scroller
Example Usage
Me.LoadingLine1.Start()
Me.LoadingLine1.StopMoving()
Me.LoadingLine1.Color1 = color1 Me.LoadingLine1.Color2 = color2
Me.LoadingLine1.Speed = speedvariable
Me.LoadingLine1.ScrollerSize = sizevariable
Me.LoadingLine1.MovementType = LoadingLineControlLibrary.LoadingLine.SetType.Bounce
Me.LoadingLine1.MovementType = LoadingLineControlLibrary.LoadingLine.SetType.MoveLeft
Me.LoadingLine1.MovementType = LoadingLineControlLibrary.LoadingLine.SetType.MoveRight
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here