Arda Basoglu
  • Home
  • Blog
  • Links
  • Contact

.Net Windows Forms login form with a progress bar control

7/18/2011

0 Comments

 
Picture
If you are using a login form in your .Net Windows Forms application you might want to show a progress bar to the user during authentication takes a little time. Doing that makes your application responsive and makes the users think your application is doing some work and not stuck. 
You choose the Style property of the progress bar as "Marquee" since you do not know how long authentication will take (possibly not more than 1 or 2 seconds but sometimes servers may respond a little longer than that).
By creating the progress bar control with the Marquee style, you can animate it in a way that shows activity but does not indicate what proportion of the task is complete. The highlighted part of the progress bar moves repeatedly along the length of the bar. You can start and stop the animation, and control its speed.
In this example when the user enters the user name / password and hits the "Go" button, the lengthy operation is emulated by Thread.Sleep(3000) call. All the labels, textboxes and the submit button are disabled when the highlight of the progress bar moves for 3 seconds. After it finishes moving the controls are enabled again and progress bar is hidden by Hide() method of itself. This gives the cue to the users that they cannot change their input during the authentication process.

Download the code (Visual Studio project)

loginwithprogressbar.zip
File Size: 10 kb
File Type: zip
Download File

0 Comments



Leave a Reply.

    Author

    Arda Basoglu is a digital marketing agency owner, software engineer/developer, musician. Worked for several companies: TWB, BNB Software, PINC Solutions,  hakia, Nurol,  NTV. 

    Archives

    October 2021
    August 2021
    June 2020
    April 2020
    September 2017
    July 2017
    April 2017
    February 2017
    September 2015
    October 2014
    March 2014
    February 2014
    January 2013
    June 2012
    May 2012
    July 2011
    December 2010
    November 2010
    October 2010
    August 2010
    July 2010
    June 2010
    March 2010
    February 2010
    January 2010
    December 2009
    November 2009
    October 2009
    August 2009
    June 2009
    May 2009

    Categories

    All
    Açık Kaynak
    Algorithms
    Avşa
    Big O Notation
    Certbot
    Database
    Ekmek
    Ekonomi
    Encrypting Settings
    Enflasyon
    Google Maps
    Heroku
    Heroku Rake Fixture Yaml Error
    JavaScript
    Mac Os X
    Magento
    .net
    .net Forms Login Progress Bar
    Node
    Node.js
    Node-postgres
    Personal
    Peynir
    Postgresql
    Rack 1.2.1 Utils.rb Error Heroku
    Ruby On Rails
    Windows 7
    Windows Froms
    Windsurfing
    Wordpress
    Yankoltuk

    RSS Feed

Powered by Create your own unique website with customizable templates.