Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,825 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I was looking for a way to navigate to a singular URL using a string eg.
private void HomePageBtn_Click(object sender, EventArgs e)
{
string HomePage = "https://www.microsoft.com/";
webView1.NavigateToString(HomePage);
}
All the browser control displays is the URL as text in a fully white window.
I have not found any articles or mentions of navigation via a string, if someone knows how to help/what I did wrong, please help.
Try this:
webView1.CoreWebView2.Navigate( HomePage );