risolto
se a qualcuno interessa c'è una valore nel registro di windows nella chiave HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main che si chiama NotifyDownloadComplete
se il valore è yes mostra la maschera
se il valore è no non la mostra
se il valore non esiste internet explorer la crea mettendola a yes
il codice da me creato è il seguente:
codice:
Dim RegValue As Object, KeyName As String, ValueName As String
Private Sub frmMain_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
My.Computer.Registry.SetValue(KeyName, ValueName, RegValue)
End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
KeyName = "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main"
ValueName = "NotifyDownloadComplete"
RegValue = My.Computer.Registry.GetValue(KeyName, ValueName, Nothing)
If RegValue Is Nothing Then RegValue = "yes"
My.Computer.Registry.SetValue(KeyName, ValueName, "no")
End Sub