Link to home
Create AccountLog in
Avatar of jasbirbrar
jasbirbrar

asked on

Showing Waiting/Processing Bar on click of a button

I am creating a Windows Application in C# using .Net framework 2.0. The "OK" button performs a certain task but it takes a few seconds to complete the task. On click of OK button I disable it.
Also, after disabling it I want to show a .gif image(a processing image) till the task is being done.

For this a wrote the code but the .gif image does not show up at all.
Avatar of Binuth
Binuth
Flag of India image

pls Attach ur Code
Avatar of jasbirbrar
jasbirbrar

ASKER

Here is the Project
New-Text-Document.txt
try this


            if (lstrUsername != "" && lstrPassword != "")
            {
                // enable/show ur gif image here
                Application.DoEvents();
                // Do some loong task
               //this.Close();
                Application.Exit();
            }
ASKER CERTIFIED SOLUTION
Avatar of jasbirbrar
jasbirbrar

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer