Even that might not be enough for drawing thousands of lines. If you are using GDI then you are using the CPU to do all your drawing. Your alternatives are limitted, but over in the CodeBank I posted the code I'm using to use XNA for drawing control surfaces. In my experience, this boosts speed by some fantastic number (possibly over 1000x on a modest graphics card).