I found a solution , that takes care of problem ;
Private Sub WebBrowser1_PreviewKeyDown(sender As Object, e As PreviewKeyDownEventArgs) Handles WebBrowser1.PreviewKeyDown
If (Control.ModifierKeys And Keys.Control) = Keys.Control Then
MessageBox.Show("Ctrl is pressed!")
End...
Hello & Thanks ;
win 10 vs 2019 vb.net .vb WebBrowser app .
I am trying to detect Ctrl key pressed .
For some sites , in this case pbskids.org ,
I am unable to make a click on image-link work .
But in 'Sub TimerStatus_Tick' hover over link , shows in StatusLbl control .
So what I want to do is...
Hello & Thanks ;
win 10 .vb
Help: string.contains prob , & Console.WriteLine() not working ?
Pls , why is "Console.WriteLine() not working" ?
Also , How could I make test with 'case insensitive' ?
Thanks for your Help...
Private Sub TestThis_Click(sender As Object, e As EventArgs)...
Strange but true .
on this page KidzSearch | Kids Safe Search Engine.
With the above code ;
Clicking on an image in the rows of images , does not cause a MouseUp Event .
Any ideas why ?
Thanks
Thanks ,
Yes , you are correct , both navigating and MouseUp run .
But I would like to know , why does
Private Sub CloseIExplore()
and WebBrowser1_DocumentCompleted
Run so many times i a row ?
Thanks for your Help..
Public Class Form1
Private Sub Form1_Load(sender As Object, e As...
Thanks ;
[
is there any way to also know what is address of the link clicked , or has that Event already gone by ?
I already showed you what link was clicked. You can read it in the link being navigated too. Try what I gave you.
]
But doesnt the MouseUp event happen before the Navigating...
Thanks ;
I handle that in the program Load with this-
WebBrowser1.IsWebBrowserContextMenuEnabled = False
Once I do below , is there any way to also know what is address of the link clicked , or has that Event already gone by ?
Thanks
Btw: Here are some of the codes I have tried:
Private Sub WebBrowser1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)
MsgBox("We are Here : Sub WebBrowser1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)")...
Hello & Thanks ;
vs vb.net 2019
On some sites (ie. this one kidzsearch.com) a click on an image-link initiates a newWindow or newTab IE instance. Looking at the .html , its not a normal link , there is no (target)="blank" , & I can't figure how they are opening a new instance of IE .
So what I...
Thanks ,
but I can't understand ms.Docs .
I did find this Gem though .
Dim processArray As Process() = Process.GetProcessesByName("iexplore")
For Each p As Process In processArray
p.Kill()
Next
Upon further research it looks like p.Close() is the best way...
Thanks ,
I thought I was all set (able to block new IE instances) ,
until I ran into this site kidzSearch.com .
In the first row of images , if I click on one of these , it opens up a new IE instance .
When I look thru this page's source view , there is no link for those images . So I don't...
Im still working on KidSafeBrowser . and thanks mostly to you folks I have accomplished ;
WebBrowser1.IsWebBrowserContextMenuEnabled = False
WebBrowser1.Document.GetElementsByTagName("A")
Using key = My.Computer.Registry.CurrentUser.OpenSubKey(keyPath, True)...
Finishing touches:
When SetReg = 0 , Tap options look like this :
When SetReg = 1 , Tap options look like this :
When SetReg = 2 , Tap options look like this :
Btw: jmcilhenney : Your link to : "How Do I?" Videos : " for Visual Basic no longer work .
Btw: jmcilhinny : Your link to...
Things are looking up :)
From jmcilhinney's code I made this so I could monitor what's going on :
Public Enum ShortcutBehavior
NewWindow = 0
CurrentWindowNewTab = 1
CurrentTab = 2
End Enum
Private Const keyPath = "SOFTWARE\Microsoft\Internet...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.