Thursday, June 15, 2017

How to open or trigger a default browser in C#

Here is the simple solution to how trigger default browser with C# with required url

we can write simple method Gotowebsite as below



public void gotoWebSite(string mySiteUrl)
{
     System.Diagnostics.Process.Start(mySiteUrl);
}

by calling this method, it trigger the defualt browser with url we passed to the method.

No comments:

Post a Comment