简体   繁体   中英

Web Browser Control Resizing?

I placed a web browser control on my form and I am trying to resize it when the window resizing. However it seems like the web browser control is locked, and even in the properties panel, if I try to change the size variables, it doesn't allow me to resize it.

Here is the code I am trying to use to resize the control programmatically:

webDisclaimer.Size = new System.Drawing.Size(this.Size.Width - 100, this.Size.Height - 200);

您是否尝试将“ Dock”属性设置为“ None”?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM