如何在基于Windows的应用程序中调整面板的大小 [英] How to resize a panel in windows based application

查看:64
本文介绍了如何在基于Windows的应用程序中调整面板的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



请帮我解决这个问题.

语言:vb .net,

我正在做一个基于Windows的项目.它包含两个部分,一个用于图像,另一个用于表格,在该表格中,操作员必须输入申请人的所有详细信息.我的想法是通过查看.tif图像,必须在Windows表单中填写所需的信息.询问表单的客户端应可调整大小.有可能吗?

Hi,

Please help me to solve this.

Language: vb .net,

Im doing a windows based project. It contain two parts one is for image and another is for form where the operator has to enter all the details of the applicant. my idea is by viewing a .tif image required information has to be filled in the windows form. The client asking about the form should be resizable. will it possible. If it is possible please help me.

推荐答案

是的,我看不到任何问题.
我会这样做:将拆分器控件放在窗体上,并以一个大小放置PictureBox(或面板,然后在Paint事件中自行绘制),将其停靠以填充父级.将其他控件放在拆分器的另一侧.将拆分器对接以填充其父级.
用户可以更改表格的大小或移动拆分器,图片可以根据需要增加或减少.
Yes, I can''t see a problem.
I would do this: Put a splitter control on your form, and put a PictureBox in one size (or a panel, and draw it yourself in the Paint event) Dock this to fill the parent. Put your other controls on the other side of the splitter. Dock the splitter to fill it''s parent.
The user can change the size of the form, or move the splitter, and the picture can increase or decrease in size as they want.


这篇关于如何在基于Windows的应用程序中调整面板的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆