Announcement

Collapse
No announcement yet.

problem on OnSymbolChanged event

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • problem on OnSymbolChanged event

    Hi there,

    I am a new user and trying something basic by referring to the share file doc.

    I program by using VB 2008. Seem there is problem for me that I cannot even have the program handle the OnSymbolChanged event. That is, everytime i do the DoSymbolLink, there is not reponse on the OnSymbolChanged event.

    Please help. I have the code pasted below.

    Public Class Form1
    Dim WithEvents esignal As IESignal.Hooks
    Private Sub esignal_OnSymbolChanged(ByVal sSymbol As String)
    CurrentSymbol.Text = sSymbol
    End Sub
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    esignal = New IESignal.Hooks
    esignal.SetApplication(myaccount code)
    End Sub

    Private Sub bReqSymbol_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bReqSymbol.Click
    esignal.DoSymbolLink(ReqSymbol.Text)
    End Sub

    End Class

    Thanks,
    Ken

  • #2
    Hi Ken,

    You may need to add a "handles" clause to your event handler. Try this:

    Private Sub esignal_OnSymbolChanged(ByVal sSymbol As String) Handles esignal.OnSymbolChanged

    Comment

    Working...
    X