Show stock market in vb.net -


  private sub button1_click(byval sender system.object, byval e system.eventargs)             handles button1.click     try one:         dim w new webclient         dim bytes() byte = w.downloaddata(textbox1.text)         dim istream new memorystream(bytes)         picturebox1.image = image.fromstream(istream)     catch ex exception         msgbox(ex.message)         goto 1     end try     try two:         dim g graphics = picturebox2.creategraphics         dim w new webclient         dim bytes() byte = w.downloaddata(textbox1.text)         dim istream new memorystream(bytes)         g.drawimage(image.fromstream(istream), new rectangle(0, 0, picturebox2.width,  picturebox2.height))     catch ex exception         msgbox(ex.message)         goto 2     end try     end sub 

trying make program vb.net show stock graph wondering if works or if there easier way. there way can number of current stock market program

trying make program vb.net show stock graph

your code sample appears attempting use web scraping extract image web site. easiest way stock chart quite limited, i.e unable manipulate data, site may rate limited, , there may legal issues.

you should check terms of use of website taking chart from, , may need limit frequency @ request data. current implementation request chart server regardless of it's update rate.

is there way can number of current stock market program

there number of financial apis listed on programableweb site.

for historical day data on stocks, yahoo finance's api free , easy option. here's f# script example get stock quote data , historical stock prices yahoo finance.

being able provide foreign exchange graph realtime , accurate

there's blog series on reading real-time data interactive brokers (ib):

show stock graph

.net has built-in chart controls including stock charts , candlestick charts.

for end-to-end example see msdn tutorial: creating charts real-time data

there number of open source , commercial charting libraries.

note: of examples in f#, quick introduction f# read f# eye vb guy.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -