'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
Comments
0 B
|0 👍
/0 👎
0 B
|👍
/👎