When using WebBrowser control how do you have the text appear without margins?

Posted by Tim Murphy on Stack Overflow See other posts from Stack Overflow or by Tim Murphy
Published on 2010-03-31T21:12:18Z Indexed on 2010/03/31 21:13 UTC
Read the original article Hit count: 815

I'm using a System.Windows.Forms.WebBrowser control next to textboxes with the left margins of each control aligned on the same X axis. The appearance however is "ugly" because the WebBrowser control inserts a margin/padding around the content of the control. Therefore the text in the WebBrowser control is several pixels to the right of the text in each of the surrounding textboxes.

How do you fix this? The Margin setting does not appear to work.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about webbrowser