Danielxmovies
Gebruiker
- Lid geworden
- 8 okt 2011
- Berichten
- 300
Code
OMG Je bent geweldig het is nu echt heel goed!!!!!
Heel erg bedankt!!!
Nu andere vraag
Een hele erge domme vraag maar kijk:
Als ik zeg dat ie een msgbox moet openen als bijv. Form1 opent dan doet ie dat oneindig vaak openen.
Is er een andere code of manier om zo een msgbox te maken?
De code die ikk nu heb is erg ongeordend maar de onderste werkt wel maar bovenste niet:
[CPP] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Watcher.Show()
If Me.Name = "Form1" Then
If MsgBox("A Virus has been detected,more information?", MsgBoxStyle.YesNo) = MsgBoxResult.No Then
If MsgBox("A Virus has been detected,more information?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
If MsgBox("Destroy the Virus and hack the hacker?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then Controller.Timer3.Start()
If MsgBox("Destroy the Virus and hack the hacker?", MsgBoxStyle.YesNo) = MsgBoxResult.No Then
Me.Close()
Else : Controller.Timer3.Start()
End If
End If
End If
End If
[/CPP]
OMG Je bent geweldig het is nu echt heel goed!!!!!
Heel erg bedankt!!!
Nu andere vraag
Een hele erge domme vraag maar kijk:
Als ik zeg dat ie een msgbox moet openen als bijv. Form1 opent dan doet ie dat oneindig vaak openen.
Is er een andere code of manier om zo een msgbox te maken?
De code die ikk nu heb is erg ongeordend maar de onderste werkt wel maar bovenste niet:
[CPP] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Watcher.Show()
If Me.Name = "Form1" Then
If MsgBox("A Virus has been detected,more information?", MsgBoxStyle.YesNo) = MsgBoxResult.No Then
If MsgBox("A Virus has been detected,more information?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
If MsgBox("Destroy the Virus and hack the hacker?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then Controller.Timer3.Start()
If MsgBox("Destroy the Virus and hack the hacker?", MsgBoxStyle.YesNo) = MsgBoxResult.No Then
Me.Close()
Else : Controller.Timer3.Start()
End If
End If
End If
End If
[/CPP]