UserControl center sceen? [英] UserControl center sceen?

查看:65
本文介绍了UserControl center sceen?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确信这很简单,我有一个用户控件,而不是表格,我想在中心屏幕上加注它,但是没有起始位置属性。


有人可以提供一些示例或C#代码来实现这一点。


提前谢谢。

I am sure this is real simple, I have a user control, not a form and I want t star it up in center screen, but there is no start position property.

Could someone provide some example or C# code to make this happen.

Thanks in advance.

推荐答案

请帮帮忙?任何人?


将其包装在< center>标签?
wrap it in <center> tags?


我想我不清楚所以让我澄清一下。


我在C#work awsome中创建了一个自定义登录控件但是控件没有startposition属性,因此当自定义表单加载时,它位于屏幕的左上角。我希望它从屏幕的中心开始。


我不知道怎么做,感谢任何帮助,谢谢。
I guess I am not being clear so let me clarify.

I created a custom login control in C# work awsome however the control does not have a startposition property so when the custom form loads it is to the upper left of the screen. I would like it to start in the center of the screen.

I am not sure how to do this and would appreciate any help, thanks.


这篇关于UserControl center sceen?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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