954,505 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Help with charting application for stocks

On the attached, there are no bugs what so ever. My program simply allows the user to select a data file that contains historical stock / currency prices and displays it. The data files are included with the project.

The only performance issue I found is that when ever the user moves the mouse its very slow to update the graphics. I know for a fact that this is because that the way I programmed it is that it repaints everything for each and every time the mouse move event is fired.

I'm thinking that if theres someway the program can preload the graphics from a bitmap and update the cursor only and not the entire graphics contents. I know that this is the desired solution but I'm having trouble implementing it.

I would like to ask for help with this. The code and everything is attached.

Attachments StockChartApplication.zip (720.09KB)
russb
Newbie Poster
1 post since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

There are third party controls for charting and they are integrated with .net, search and play with them.

Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

ok why you don't try to create a native image of your executable on your machine using the

ngen.exe tool delivered with the .Netframework

It can help

Jugortha
Junior Poster
172 posts since Oct 2007
Reputation Points: 11
Solved Threads: 16
 

you can see ngen.exe tool in MSDN for more information

Jugortha
Junior Poster
172 posts since Oct 2007
Reputation Points: 11
Solved Threads: 16
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You