Click here to Skip to main content
11,581,510 members (65,470 online)
Click here to Skip to main content

Loading Line Control

, 31 May 2006 28K 593 28
Rate this:
Please Sign up or sign in to vote.
Custom Loading Bar Control
<!-- Article Starts - DO NOT ADD HTML/BODY START TAGS-->

Sample Image - LoadingLine.gif

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

'' Start Loading

Me.LoadingLine1.Start()

'' Stop Loading

Me.LoadingLine1.StopMoving()

''Change Color

Me.LoadingLine1.Color1 = color1 ''Color
Me.LoadingLine1.Color2 = color2 ''Color

''Change Speed

Me.LoadingLine1.Speed = speedvariable ''Integer

''Change Size

Me.LoadingLine1.ScrollerSize = sizevariable ''Integer

''Change Movement Type

Me.LoadingLine1.MovementType = LoadingLineControlLibrary.LoadingLine.SetType.Bounce
Me.LoadingLine1.MovementType = LoadingLineControlLibrary.LoadingLine.SetType.MoveLeft
Me.LoadingLine1.MovementType = LoadingLineControlLibrary.LoadingLine.SetType.MoveRight

License

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

Share

About the Author

jChuckran
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

 
GeneralSlightly Optimized Pin
Polymorpher11-Jun-06 7:15
memberPolymorpher11-Jun-06 7:15 
GeneralThanks Pin
Polymorpher8-Jun-06 15:48
memberPolymorpher8-Jun-06 15:48 
Generalthis is a duplicate Pin
pita20007-Jun-06 17:40
memberpita20007-Jun-06 17:40 
GeneralRe: this is a duplicate [modified] Pin
TerrinHelles7-Jun-06 17:44
memberTerrinHelles7-Jun-06 17:44 
GeneralNice Pin
Malik Nasir31-May-06 19:07
memberMalik Nasir31-May-06 19:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150603.1 | Last Updated 31 May 2006
Article Copyright 2006 by jChuckran
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid