Hello Maccas,
First of, that was a great article, very useful to me. Thanks!
I'm having some problem with it which I was wondering if you could help me out with. I got the following exception when trying to get the parent window of the current document. Any ideas why? Your help is greatly appreciated.
Thanks,
-Savitha
Unhandled Exception: System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
at System.RuntimeType.ForwardCallToInvokeMember(Strin g memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at mshtml.HTMLDocumentClass.get_parentWindow()
at ConsoleApplication1.Module1.GetCoord(HTMLDocument hDoc, HTMLInputElement hEle, CoordType Output) in C:\New\ConsoleApplication1\ConsoleApplication1\Mod ule1
.
vb:line 95
at ConsoleApplication1.Module1.Test() in C:\New\ConsoleApplication1\ConsoleApplication1\Mod ule1.
vb:line 64
at ConsoleApplication1.Module1.Main() in C:\New\ConsoleApplication1\ConsoleApplication1\Mod ule1.
vb:line 110
Press any key to continue . . .