I have a WinForm inside which there is a simple WebBrowser control. I want the Form should auto-resize depending on the length of WebBrowser content. If the content is small, the Form should shrink and If the content is big, it should grow.
These are the steps I have taken so for:
- I have a simple Form inside in which there is a WebBrowser Control.
- Docked the WebBrowser to Form Control.
Set the properties of Form as below:
- AutoSize: True
- AutoSizeMode: GrowAndShrink
- FormBorderStyle: FixedDialog
- MaximizeBox: False
But still didn't work!
By doing so, the content of the form is completely disappeared.
Is there any solution for that?