mshtml help

gijesh

New member
Joined
Sep 7, 2004
Messages
3
Programming Experience
1-3
The folllowing code works fine in VB 6.0

dim str as String

dim obj as New mshtml.HTMLDocument

str="<html><body><p>Test</p></body></html>"

obj.body.innerHTML = str


When i do the same thing in VB.Net i am getting the following error:
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.


What is the error?how can i do this in VB.Net?
 
Top Bottom