根据Windows大小调整按钮大小 [英] Button Resizing According To Windows Size

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

问题描述

假设我在文本框上有标签和按钮,并且我希望如果我调整赢奖表格的大小,那么我的标签和按钮的大小和位置将会改变.我正在使用Win Form应用程序.

在这里,我提供的网址是您可以从中看到的表格形式的输出.网址为 http://i.stack.imgur.com/QeoVK.png .请查看图片,并告诉我如何在Win Form应用程序中实现这些功能.

请通过c#.thanks中的代码段帮助我.

解决方案

设置控件的锚点属性
锚定属性演示
锚定属性


Suppose i have label and button on textbox and i want that if i resize my win form then my label and button size and position will change. i am working with win form apps.

here i am giving the url from where you can see what kind of output i am looking form. the url is http://i.stack.imgur.com/QeoVK.png. please see the image and tell me how can i implement these in win form apps.

please help me with code snippet in c#.thanks.

解决方案

Set anchor property of your controls
Anchor Property Demo
Anchor Property


这篇关于根据Windows大小调整按钮大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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