OT - IE Plug-In ?

  • Thread starter Thread starter Joe Camel
  • Start date Start date
J

Joe Camel

*** OFF TOPIC ***

Folks,

Where do I go to find out (:where to start:) finding out information on how
to write a plug-in for Internet Explorer.

I need to place a button on IE's toolbar and when it's pressed the URL and a
couple of filled in fields are to be sent to a web[service] site.

Thanks.

Regards,
Joe
 
Morten,

I've followed the tutorial and have managed to get most of it to work.

However, I need to get the value of the URL in the Address field, within the
"button1_Click" method.

"this.Explorer.LocationURL" produces the following error:
'SHDocVw.WebBrowserClass' does not contain a definition for 'LocationURL'

Thank you for your help.

Regards,
Joe

Morten Overgaard said:
take a look at this

http://www.codeproject.com/csharp/dotnetbandobjects.asp

regards Morten
Joe Camel said:
*** OFF TOPIC ***

Folks,

Where do I go to find out (:where to start:) finding out information on how
to write a plug-in for Internet Explorer.

I need to place a button on IE's toolbar and when it's pressed the URL
and
a
couple of filled in fields are to be sent to a web[service] site.

Thanks.

Regards,
Joe
 
You can use the IHTMLDocument2 interface to get the current location.
Code would look like this:


IHTMLDocument2 doc2 = this.Explorer.Document as IHTMLDocument2;
IHTMLLocation location = doc2.location as IHTMLLocation;
string url = location.href;


Joe Camel said:
Morten,

I've followed the tutorial and have managed to get most of it to work.

However, I need to get the value of the URL in the Address field, within the
"button1_Click" method.

"this.Explorer.LocationURL" produces the following error:
'SHDocVw.WebBrowserClass' does not contain a definition for 'LocationURL'

Thank you for your help.

Regards,
Joe

Morten Overgaard said:
take a look at this

http://www.codeproject.com/csharp/dotnetbandobjects.asp

regards Morten
Joe Camel said:
*** OFF TOPIC ***

Folks,

Where do I go to find out (:where to start:) finding out information on how
to write a plug-in for Internet Explorer.

I need to place a button on IE's toolbar and when it's pressed the URL
and
a
couple of filled in fields are to be sent to a web[service] site.

Thanks.

Regards,
Joe
 
Back
Top