How can I properly access the web browser control from within myFunct()? Main.myWebBrowserControl & Main::myWebBrowserControl don't work.
namespace foo{
public partial class Main : Form{
public Main(){
InitializeComponent();
// Do some things...
MyFunct();
}
public static void MyFunct(){
myWebBrowserControl.Navigate("http://www.google.com"); // causing an error.
}
}
}