调整表单元素的大小 [英] Resizing the form elements on resizing the form
本文介绍了调整表单元素的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何调整Windows表单元素的大小?有什么办法可以像CSS一样设置图片框,面板等的宽度100%?建议我一些布局最佳实践的帮助吗?当我调整Windows窗体的大小时,我希望当我调整图像大小时,图像大小也改变.像Windows Picture Viewer
how to Resizing the Windows form elements on resizing the form? is there any way to set the width of picturebox, panel, etc 100% like CSS? suggest me some help for best practices of layout? When i resize the Windows form, I want that Image size also change when i resize the image. like Windows Picture Viewer
推荐答案
使用控件的Anchor属性可能会好起来的.
You would probably be okay with the Anchor property of the controls.
http ://msdn.microsoft.com/zh-CN/library/system.windows.forms.control.anchor(v = vs.71).aspx
这篇关于调整表单元素的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文