Closed cpgtech closed 10 years ago
@cpgtech I'd suggest you restructure your code quite a bit.
Cef.Initialize
only once on application startup. e.g. https://github.com/cefsharp/CefSharp/blob/CefSharp1/CefSharp.Wpf.Example/App.xaml.cs#L10WebView
in XAML if at all possible e.g. https://github.com/cefsharp/CefSharp/blob/CefSharp1/CefSharp.Wpf.Example/MainWindow.xaml#L155WebView
and set it's address using your browseThis(string url)
method.Hope this helps!
Closing due to lack of feedback from OP.
Hello I am a beginner in C # and I need your help to solve this .. I use cefsharp as Browser in my application. My Xaml, I have this
To browse a web page in my webbrowser I use this code
It works a first time, then it does not work. example: if I open my application and If I type www.google.com. the browser displays the page of Google. if I enter a second URL www.yahoo.com. My browser is still on google page.
I have no error message.
Can you help me solve this little problem? I try to look here https://github.com/cefsharp/CefSharp/tree/CefSharp1/CefSharp.Wpf.Example but I still did not find solution.
Thanks