更改表格的来源 [英] Change origin of form

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

问题描述

您好,我需要有关职位的帮助

默认表单的坐标从左上方开始

像这样

http://www.yazilimuzmani.com/Articles/Images/1000000996_image002.jpg [ ^ ]

我想将其更改为居中位置我该怎么做


谢谢


对不起我的英语了

Hi, i need help with position

default form''s coordinates start on top left

like this

http://www.yazilimuzmani.com/Articles/Images/1000000996_image002.jpg[^]

i want to change it to center how can i do this


thanks


sorry for my english

推荐答案

您可以使用LeftTop属性扭曲表单的位置,以便将表单居中显示在屏幕上将StartPosition属性设置为FormStartPosition.CenterScreen,注意必须在显示表单之前设置StartPosition.
you can contorl the form''s position using the Left and Top properties inorder to center the form on the screen you can set the StartPosition property to FormStartPosition.CenterScreen notice StartPosition has to be set before the form is shown.


这篇关于更改表格的来源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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