I need to display an html string in a WebBrowser control, but it can have a variable length and not the only one on the screen. Therefore, I need to set the width to match the actual content of the message.
WebBrowser has an ActualHeight property, but this does not produce any results. In addition, as soon as it is displayed correctly, I do not want it to scroll, since the user can scroll it completely from the screen.
Any ideas?
source share