I wanted to declare a function in c# and use it in order to navigate a webbrowser control
I know I can do it with this:
webbrowser1.navigate(@"my htm");
I want to do this with like :
webbrowser1.navigate(the defined function);
I should also mention that I am doing a usercontrol and the filepath must be changeable from the main form
I really appreciate some help :)
Defining function to return a string value
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Apr 6, 2013, 2:35 AM EDT
webbrowser1.navigate(mymethod());