I just started using the activex ciontrol...I can get a quote but I am having problems displaying it...According to the Visual Basic developer reference doc it says to get streaming real time quotes by doing this:
Private Sub esignal_OnQuoteChanged(ByVal sSymbol As String)
Dim quote As IESignal.BasicQuote
quote = esignal.GetBasicQuote(sSymbol)
edtBid.Text = Str$(quote.dBid)
edtAsk.Text = Str$(quote.dAsk)
edtLast.Text = Str$(quote.dLast)
End Sub
I am assuming that edtBid and edtAsk are text box controls on my form. But when I try to update them in I get an error message that says cannot update a control that was created in another thread...
Am I missing something?
Thanks in Advance,
Eric
Private Sub esignal_OnQuoteChanged(ByVal sSymbol As String)
Dim quote As IESignal.BasicQuote
quote = esignal.GetBasicQuote(sSymbol)
edtBid.Text = Str$(quote.dBid)
edtAsk.Text = Str$(quote.dAsk)
edtLast.Text = Str$(quote.dLast)
End Sub
I am assuming that edtBid and edtAsk are text box controls on my form. But when I try to update them in I get an error message that says cannot update a control that was created in another thread...
Am I missing something?
Thanks in Advance,
Eric
Comment