Hi,
I used Me.Cursor = System.Windows.Forms.Cursors.WaitCursor when I click on search
button because I want user does not click button again before execure all code. but user is able to click on button.
Is there any alternative for this except button disable.
Thanks
Loading
Areeb QuaziPosted Dec 1, 2012, 7:53 AM
Posted Nov 30, 2012, 4:21 AM
bool executing = false;
button_click()
{
if (executing == false)
{
executing = true;
//do your search here...
//once the search is completed,
executing = false;
}
}
Hope this helps you.