Results 1 to 3 of 3

Thread: What is causing my application to slow down my computer

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2014
    Posts
    21

    Angry 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????

  2. #2
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    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.

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width