Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'Source: https://stackoverflow.com/questions/48092059/disable-alert-boxes-when-site-not-found-gecko-fx-vb
- 'Create a new class called NoPromptService with code:
- Imports Gecko
- Public Class NoPromptService
- Inherits PromptService
- Public Overrides Sub Alert(ByVal dialogTitle As String, ByVal text As String)
- Debug.WriteLine(text)'Instead of the alert dialog, it will print it out.
- End Sub
- End Class
- 'On Form_Load add code:
- PromptFactory.PromptServiceCreator = Function() New NoPromptService
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement