Results 1 to 6 of 6

Thread: [02/03] RaiseEvent Problem ?

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2006
    Posts
    108

    [02/03] RaiseEvent Problem ?

    VB Code:
    1. Public Sub processDocument()
    2. Dim document As String
    3. Dim documentBuilder As StringBuilder
    4. If documents.Count <> 0 Then
    5. documentBuilder = documents(0)
    6. document = documentBuilder.ToString
    7. documents.RemoveAt(0)
    8. If document.IndexOf("<auth") >= 0 Then
    9. RaiseEvent AuthRecieved(documentBuilder)
    10. End If
    11. End If
    12. 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 ?
    Last edited by Winder; Jun 13th, 2006 at 04:23 AM. Reason: RaiseEvent Problem ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width