I am a novice user using Ms V Studio 2005. I would like to know how to set the address field of the internet explorer through a desktop application, on a press of the button. The url is provided by the apllication itself.
I am using only C#, no other language.
Seting the "address" field of the internet exlorer through c#
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
jebasingh27 pointsPosted Jun 29, 2007, 4:01 AM EDT
the namespace SHDocVw will be available once you done the reference..
using SHDocVw;
on the click of button control use the below code..
object missing = System.Reflection.Missing.Value;
object filName = @"http://google.co.in";
InternetExplorerClass IE = new InternetExplorerClass();
IE.Navigate2(ref filName,ref missing,ref missing,ref missing,ref missing);