It only webview 2 which is in WPF, and I do agree with you that this might be more suitable than what the OP is currently doing. It's webview which only belongs to Android if I recall.
Anyway, getting late now. 4AM - Time to hit the sack. Good night!
Web browser control is based on settings from IE. I don't agree to changing the values of the registry of other programs, when their are a variety of other ways including events which can help with this. Besides, isn't is generally considered bad practice now a days to be storing data in the...
Why would it mater if the mouse up event fires or not. What I gave you stops navigating if it's a URI you don't like.
You only need to change the logic of the if statement to meet whatever conditions you want. Example :
Private Sub WebBrowser1_Navigating(sender As Object, e As...
Let it be noted, that now-a-days, its generally not a good idea go editing the windows registry. Especially registry which does not belong to your application.
Instead, I advocate you create your own config files in your own %appdata% folder instead. Find alternate methods to do what you want...
I'm surprised nobody corrected you on your approach.
What are the consequences of editing these registry values for users who only use IE?
How does your app restore the original values when your application is not in use, or if your program is removed from the computer?
There is nothing...
Private Sub WebBrowser1_Navigating(sender As Object, e As WebBrowserNavigatingEventArgs) Handles WebBrowser1.Navigating
If Not e.Url.ToString.Contains("microsoft.com") And Not e.Url.ToString.Contains("about:blank") Then
e.Cancel = True
Sorry I misunderstood you. I thought your application was launching more than once.
But if you have a browser control, and if you click on a link or something in that browser control, is it opening a new instance of internet explorer or something? If so, then cancel all new windows...