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
Wait cursor problem
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Former memberPosted Nov 29, 2012, 11:21 PM EST
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.
Areeb Quazi78 pointsPosted Dec 1, 2012, 2:53 AM EST