Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have tried to put a WebBrowser into C# WPF Application however when I attempt to use it when debugging you cannot see any type of internet page or anything.

Can anyone help?
Posted
Comments
AspDotNetDev 12-Sep-11 16:39pm    
Edit your question (with the Improve Question button) to include the code you are using. Include the XAML and C#.

Hello,

It's fairly simple or I am missing something in your question...

In the xaml:

XML
<WebBrowser x:Name="webBrowser">
</WebBrowser>


and to navigate to a webpage:

webBrowser.Navigate(new Uri("http://www.google.com"));


Valery.
 
Share this answer
 
Comments
Hooolagon 12-Sep-11 16:57pm    
Hello, I do understand that, Infact if anyone interested needs this information, it is in the link on my solution. Basically I have found out that it is impossible to have a WebBrowser on a Project which is transparant or allows transparency.

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