i need to stop execution of current method based on time in c#
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