如何在WinForm的中心设置的控制? [英] How to set controls on center of the winform?

查看:145
本文介绍了如何在WinForm的中心设置的控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我想在窗体的中心设置控件(如标签或文本框)。我需要这个,而我最大的形式。我可以静态或动态进行设置。任何人都有一个想法比请告诉我尽快...

Hello I am trying to set controls(i.e. Label or Textbox) on center of the form. I need this while i maximize that form. Can i set it statically or dynamically. Anyone have an idea than please tell me asap...

推荐答案

将控制在中央,设置属性

Place the control on the center and set Anchor property to None.

这篇关于如何在WinForm的中心设置的控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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