UpdateAvailable event using AutomaticUpdater control

Hi,

i'm trying to display a message that an update is available using the UpdateAvailable event. But for some reason it isn't triggered. Am I missing something here?

-- Private Sub updateavailable(sender As Object, e As EventArgs) Handles AutomaticUpdater.UpdateAvailable

Dim UpdateDialog As DialogResult

UpdateDialog = MessageBox.Show _ ("There is an update available. Do you want to install it now?", _ "Update availabler", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1)

If UpdateDialog = Windows.Forms.DialogResult.Yes Then AutomaticUpdater.InstallNow()

End If

End Sub--

Liekly because this bit is wrong:

Private Sub updateavailable(sender As Object, e As EventArgs) Handles AutomaticUpdater.UpdateAvailable

You have to handle your instance's "UpdateAvailable" event. For example "Handles automaticUpdater1.UpdateAvailable"