Question Changing WebBrowser RightToleft

aeskan

Well-known member
Joined
Aug 10, 2011
Messages
63
Programming Experience
3-5
Hello everybody,

How could we change RightToLeft property of WebBrowser in Vb.Net.

MSDN says;
This property is not supported by this control. (Inherited from WebBrowserBase.)
Or
RenderRightToLeft Obsolete. This property is now obsolete. (Inherited from Control.)


Does it mean there is no way to programmatically change it?

Thank you.
 
Thank you John, your links led me to this;

If (WebBrowser1.Document IsNot Nothing) Then
For Each doc As HtmlDocument In WebBrowser1.Document.All
doc.RightToLeft = True
Next
End If

Or;

WebBrowser1.Document.RightToLeft = True

Note that these codes must be written in WebBrowser1_DocumentCompleted event of our form.

And it works fine. Thanks.
 
Last edited:
Back
Top