Salve, come faccio per far fare al mio programma qualcosa in base a se l'utente a premuto si o no nella MsgBox?
Ho questo codice:
codice:
Private Sub WebBrowser1_PreviewKeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.PreviewKeyDownEventArgs) Handles WebBrowser1.PreviewKeyDown
Dim style as MsgBoxStyle
Dim msg as String
Dim title As String
style = vbYesNo
msg = "Messaggio"
title = "Messaggio"
If e.KeyCode = Keys.F2 Then MsgBox(msg, style, title)
Vorrei un If che faccia aprire il Form2 se l'utente preme Si e chiuda l'MsgBox se preme no. Mi aiutate? Grazie anticipatamente! :-)
Grazie!