THEGamingninja THEGamingninja - 1 year ago 54
C# Question

CefSharp C# How would I get the link to the current website?

I'm using CefSharp for a little project me and my friend are working on, and we want to get the link to the current site, then put it into a TextBox, but we can't find any way to get the link of the site we are currently on.

Answer Source

Look at the WinForms example at https://github.com/cefsharp/CefSharp.MinimalExample/blob/master/CefSharp.MinimalExample.WinForms/BrowserForm.cs. There is a OnBrowse change event that receives the URL of the browser once it's loaded.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download