In one tab of a tabcontrol Im loading information from a database with a DataReader. But this takes quite a bit of time, so I use
Application.DoEvents()
But I have also another tab that loads also information with another DataReader.
Problem:
------------
When the first data is loading, I click on the other tab, so to have the other information. But it gives an error, because I have two open DataReaders.
Does someone has a solution for that???
Maybe a solution for this is STOPPING the first DataReader and starting the other, but how do you do that in code because of the different procedures that are running during the process????
Thanks
Nico
Application.DoEvents()
But I have also another tab that loads also information with another DataReader.
Problem:
------------
When the first data is loading, I click on the other tab, so to have the other information. But it gives an error, because I have two open DataReaders.
Does someone has a solution for that???
Maybe a solution for this is STOPPING the first DataReader and starting the other, but how do you do that in code because of the different procedures that are running during the process????
Thanks
Nico