无论显示器屏幕的大小如何,如何在中心显示标签? [英] How to display label in center irrespective of size of monitor screen?

查看:122
本文介绍了无论显示器屏幕的大小如何,如何在中心显示标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

尊敬的先生/女士。这是我第一次开发软件所以我有一个问题我要在中间显示一个标签(欢迎用户)我的显示器屏幕的(中心),但是你知道屏幕尺寸变化像我的19Inc其他(我的客户端)可能比它大或者可能比它小,所以我希望我的欢迎标签应该出现在屏幕的中心,无论如何监视器屏幕的大小......

请求回复

谢谢

Hi To All!
Respected sir/ma''am.This is first time i am developing software so i have one question i want to display One label(Welcome to user) on the middle(center) of my monitor screen but as you know screen size is vary like mine is 19Inc others(my client)might have larger than it or may smaller than it,so I want my Welcome Label should appear on the center of the screen irrespective of size of the monitor screen...
Pleas reply
Thanks

推荐答案

如果是windows应用程序,

设置欢迎标签的属性......

If it is windows application,
set welcome label''s properties...
Label1.Dock = Fill;
Label1.TextAlign = MiddleCenter;



快乐编码!

:)


Happy Coding!
:)


这篇关于无论显示器屏幕的大小如何,如何在中心显示标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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