I am using a C # web browser control and I would like to be able to connect different URLs depending on other things that happened in the program. How to set a URL property to a string in code? Is it possible to convert a string to type System.Uri?
string link;
string searchedtitle = "The+Italian+Job";
link = "http://www.imdb.com/find?s=all&q=" + searchedtitle + "&x=0y=0";
WbBrowser.Url = link;
Something in this regard would be ideal where I could change the βsearchtitleβ inside the program somewhere else and still work correctly. Unfortunately, the Url property has a type System.Uri, and I only have it System.String.
vcstr
source
share