You can use the demo code in any way you want, except the MemDC.h file which wasn't written by me. Environment: Visual Studio .Net 2005 You may use LineChartControlDemo.dsw if you are still using Visual C++ 6.0. Albert(albertsong.com@gmail.com) http://www.albertsong.com