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.
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.
pls Attach ur Code
ASKER
Here is the Project
New-Text-Document.txt
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();
}
if (lstrUsername != "" && lstrPassword != "")
{
// enable/show ur gif image here
Application.DoEvents();
// Do some loong task
//this.Close();
Application.Exit();
}
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.