如何根据面板尺寸调整表格尺寸 [英] how to adjust the form size according to the panel size

查看:111
本文介绍了如何根据面板尺寸调整表格尺寸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿弗伦斯,
我想问一个问题,我的问题是这样的:
我有一个必须在面板内部加载的表格.面板的尺寸固定,但表格未涵盖所有尺寸的面板.我如何将表格加载到面板的完整尺寸,请帮助我
关于bishnu

hey frens,
i want ask a question and my question is like this:
i have a form which has to be loaded inside the panel. the panel has fix size but the form is not covering all the size of panel. how can i load the form to the full size of panel please help me
with regards bishnu

推荐答案

this.Width和this.Height,可以在表单类中调整其大小.
this.Width and this.Height inside the form class let you resize it.


设置Dock物业:

Set the Dock property:

frmInputBox fib = new frmInputBox();
fib.TopLevel = false;
fib.Visible = true;
panContainer.Controls.Add(fib);
fib.Dock = DockStyle.Fill;


这篇关于如何根据面板尺寸调整表格尺寸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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