timer use?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello,

i am building a distributed client/server trading support system for use in
a hedge fund which trades stocks. ultimately i envision using distribute app
technology to communicate realtime prices/volumes and other info from the
server (which will interface with a data feed) to the client where our
traders sit.

however, i am putting in place a temporary solution. the client will be a
windows forms app w/ several datagrids. i would like these datagrids to
update periodically by querying my sql server db for newly computed data.
what's the best way to do this? in my current solution, which is written in
vba, i use a timer. should i continue to use a windows forms timer? is that
form of the timer class appropriate? or is there a better way to do it?

much appreciated,
matthew
 
For infrequent updates, your use of a Windows Forms timer will be fine. Note
that during long running operations on the main UI thread the timer can stall
until the UI thread becomes available again. I don't foresee this as a problem
for you though.

Infrequent means anything greater than 500 ms or so... The resolution on the
timer is somewhere around 50ms, but it isn't very stable there.
 
Back
Top