📜  windows 窗体 Webbrowser url 检测 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:09.006000             🧑  作者: Mango

代码示例1
if(Url_txt.Text.Contains("."))
{
   //Ist eine url
   WebBrowser.Navigate(Url_txt.Text.Trim());
}
else
{
   //Ist eine Suche
   WebBrowser.Navigate("https://www.google.com/search?client=opera-gx&q="+Url_txt.Text.Trim()+"&sourceid=opera&ie=UTF-8&oe=UTF-8");
}