VB Code:
Public Sub processDocument() Dim document As String Dim documentBuilder As StringBuilder If documents.Count <> 0 Then documentBuilder = documents(0) document = documentBuilder.ToString documents.RemoveAt(0) If document.IndexOf("<auth") >= 0 Then RaiseEvent AuthRecieved(documentBuilder) End If End If End Sub
Under my Windows Form Designer, i added
AddHandler App.network.AuthRecieved, AddressOf Me.FPD
I got 2 Page, the first page is a login, and it uses the raiseevent as well, the second page does receive the auth tag too.
But it can't proceed on to AddressOf Me.FPD, for my login page, the AddHandler thingy work and i manage to execute the method.
Any help ?




Reply With Quote