7
Reply

i need to stop execution of current method based on time in c#

sandeep raju dantuluri

sandeep raju dantuluri

May 25 2012 1:32 AM
3.5k
hi techies,
i am developing a c# windows applications.

my requirement is similar to below

void myfunction()
{
       // here i am calling another function
        createreport(id,name,num);


//rest of the code
}

if  createreport function takes more than 1 minute to execute,i want to stop that method and continue rest of the code.

please suggest me how can i do..thanks in advance

Answers (7)