Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Getting Error while using web browser with HTML Element Set Attribute in Framework 4.0 in C#

$
0
0

hello,

I am using Web browser control to replace Rich Text Editor for getting HTML output. Everything works fine in framework 2.0

but when i am trying to change  to framework 4.0 then gives error 

At 

 webBrowser1.Document.Write(webBrowser1.DocumentText);
            doc.designMode = "On";
            webBrowser1.Document.Body.SetAttribute("contentEditable", "true");

Error is "Object reference not set to an instance of an object."

Reply ASAP,

Regards,

Divyang


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>