Click here to Skip to main content
16,013,082 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Created a Custom Windows Forms WebBrowser to be opened a fixed url and search bar is disabled as per requirement. When user traversing next page (clicking next button available on the web page) there are few links which are opened in new window. And they are invoking default Internet explorer with search bar option. Can I disable the page to be opened or grey out the content having such links on the basis of next page url. Or if there any option to get the link opened in same window. Please advise.


What I have tried:

Quote:
Created a Custom Windows Forms WebBrowser to be opened a fixed url and search bar is disabled as per requirement. When user traversing next page (clicking next button available on the web page) there are few links which are opened in new window. And they are invoking default Internet explorer with search bar option. Can I disable the page to be opened or grey out the content having such links on the basis of next page url. Or if there any option to get the link opened in same window. Please advise.
Posted
Updated 25-Dec-18 4:07am
Comments
Richard Deeming 20-Dec-18 7:51am    
REPOST
You have already posted this in the .NET Framework forum:
https://www.codeproject.com/Messages/5581756/Custom-Windows-Forms-WebBrowser-issues-Net.aspx[^]

1 solution

My first guess would be to capture the BrowseTo event (if it exists), and eat it by setting IsHandled (if i remember correctly) to true.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900