What is causing my application to slow down my computer
I am running a laptop with 6 gigs of ram, intel i7 1.6 Ghz, and windows 7 64 bit. My application imports a couple of excel spreadsheets into a datagridview and then filters it with a textbox. The problem is it makes my computer really slow whether it's minimized or if I'm typing in the textbox. My CPU usage and my ram usage stay as expected the whole time. Why is it slowing down my computer????
Re: What is causing my application to slow down my computer
My first guess is that your app is loading into a datagridview with 100s of columns, and you have told the columns to be auto-created?
Another could be that you are importing the entire worksheet from Excel and not just the data (usedrange).
You could of course just add a breakpoint/stopwatches between loops to see where your pin-points are. We can only guess as you have told us nothing of how the app has been coded.
Re: What is causing my application to slow down my computer
I'm guessing you're using the TextChanged event to activate the filter aren't you? that means each time you type into the text box, it has to run that filter routine... since you didn't post the code for that, we can only guess what you're doing in there. I can think of at least three different ways that it could be done... two are inefficient for such operations, while the third usually works generally works reasonably well. Keep in mind as well, that every time you filter, ther'es also a screen refresh that happens.
-tg