I'm not sure if this would work, but I would try making a public static
variable, and a timer with an interval of like... 20 seconds... and like,
start the timer in the line right before "ShowDialog()" for the crystal
viewer. Then after 20 seconds is passed (in the timer_Tick event method) I
would make it show a dialog box that says "This is taking long, would you
like to cancel?"
when the crystal viewer dialog is shown, I would make the variable equal to
like 1, so if the variable is not equal to 1 when 20 seconds has passed, I
would show the dialog saying that it is taking to long, and stop the timer.
if yes is clicked I would use e.cancel; somewhere.... I'm not sure where...
maybe that wouldnt even work.. just throwing it out there...
hope this helps.
"Pucca" wrote:
Hi, I'm using vs2005, .net 2.0. I have a form with crystal Viewer that I
call as showdialog. I want to give the user an option to cancel out of it is
it's taking too long to process. Is there a way to do this? How can I pop
up another dialog box or message in this dialog form for user to click on a
Cancel button if it's taking to long to display the report?
--
Thanks.