i put this code in a class...

VB Code:
  1. Public Event DownloadComplete(ByVal Status As Integer, ByVal ReturnValue As String, ByVal URL As String, ByVal FileName As String)
  2.  
  3. '~~~~~~~~~~~~~~~~~~
  4.  
  5.     Sub DownloadPicture()
  6.         Dim MyWebClient As WebClient = New WebClient()
  7.  
  8.         Try
  9.             MyWebClient.DownloadFile(URLName, LocalFileName)
  10.         Catch ex As Exception
  11.             RaiseEvent DownloadComplete(0, ex.Message, "", "")
  12.         Finally
  13.             RaiseEvent DownloadComplete(1, "Imagem carregada com sucesso no disco rigido!", "", "")
  14.             Msgbox("download complete!")
  15.         End Try
  16.     End Sub

and then in form i have

VB Code:
  1. Private WithEvents Dev As New Deviations()
  2.  
  3.     Private Sub Dev_DownloadComplete(ByVal Status As Integer, ByVal ReturnValue As String, ByVal URL As String, ByVal FileName As String) Handles Dev.DownloadComplete
  4.         MsgBox(Status)
  5.     End Sub

but the Dev_DownloadComplete is never fired although the msgbox saying "download complete" is fired!!! grrrrr

what am i missing..?