I have a button in my Form and when I click the Button It will get the data from different tables through webservice.
I am writing the code below
private void imageButtonWorkOrder_Click(object sender, EventArgs e)
{
try
{
Cursor.Current = Cursors.WaitCursor;
//Code for to get data from 10 tables
}
catch
{
}
finally
{
Cursor.Current = Cursors.Default;
}
}
But the problem I am facing is that the cursor is not rotating up to end of the process.
It's simply stopping after some time.
Please suggest me how to fix this problem.
Thanks in Advance,
Balu