string str1 = Uri.UnescapeDataString(str); if (Uri.IsWellFormedUriString(str1, UriKind.Absolute)) { Uri uri = new Uri(str); linkBtn.NavigateUri = uri; linkBtn.TargetName = "_blank"; } here: str: string from text box linkBtn: hyperlink button
using System.Diagnostics; TextBox pathTextBox = new TextBox(); Process p = new Process(); p.StartInfo.FileName = "explorer"; p.StartInfo.Arguments = @pathTextBox.Text; // make sure to include '@' p.Start();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)