demonraiser
New member
- Joined
- Jan 11, 2007
- Messages
- 2
- Programming Experience
- 3-5
I have a hta application with javascript as the frontend, and Vb6 library at the backend.
Once I migrated the application to VB.NET, most of the functionalities work fine, but in certain situation, if I try to access javascript variables from VB.NET, the code fails.
e.g I have a handle to the hta application window, oWindow, which is visible as an mshtml.IHTMLWindow2 object. I can access the document tags as well as javascript variables as before.
e.g. oWindow.oTab = Me
Now I have a non-modal child window declared
oHelpWindow = oWindow.showModelessDialog(strHelpPath & "BQHelp.htm", Me, "status:no;dialogwidth:0;dialogheight:0;resizable:yes;")
where oHelpWindow is also declared as a mshtml.IHTMLWindow2.
Within BQHelp.htm, a javascript variable oHelp is defined.
When I try to set this oHelp variable from VB.NEt code in the following manner
oHelpWindow.oHelp = Me
the code throws an exception "Member not found".
How do I get it to work?
Once I migrated the application to VB.NET, most of the functionalities work fine, but in certain situation, if I try to access javascript variables from VB.NET, the code fails.
e.g I have a handle to the hta application window, oWindow, which is visible as an mshtml.IHTMLWindow2 object. I can access the document tags as well as javascript variables as before.
e.g. oWindow.oTab = Me
Now I have a non-modal child window declared
oHelpWindow = oWindow.showModelessDialog(strHelpPath & "BQHelp.htm", Me, "status:no;dialogwidth:0;dialogheight:0;resizable:yes;")
where oHelpWindow is also declared as a mshtml.IHTMLWindow2.
Within BQHelp.htm, a javascript variable oHelp is defined.
When I try to set this oHelp variable from VB.NEt code in the following manner
oHelpWindow.oHelp = Me
the code throws an exception "Member not found".
How do I get it to work?