I am using Crystal report Viewer to load a report
The reports are loaded on the button on the form.
I need whenever I press the button the button is disabled until the reports are loaded.
How can I do it
Thanks in Advance
Rgrds
A. Haider
Printable View
I am using Crystal report Viewer to load a report
The reports are loaded on the button on the form.
I need whenever I press the button the button is disabled until the reports are loaded.
How can I do it
Thanks in Advance
Rgrds
A. Haider
Button1.enabled = false
Use a BackgroundWorker to load the Crystal Report. When its finished, in the BGWorker's Work completed event, enable the button.
I directly answered your question, just not in a helpful way. Is this better?
And that exaclty I want to do. But How?
I cannot do it
I have used several crystal report viewer methods but the thing that I wish is not working
Look up information on using BackgroundWorkers. They're difficult at first, but trust me, they're not that bad.
Moved To Reporting