记住屏幕上的表格位置 [英] remember a forms position on the screen

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

问题描述

我正在谷歌搜索一种方法,让我的单一表单应用程序在关闭时屏幕上的

相同位置开始。我发现这篇

非常短的文章:

http://blogs.techrepublic.com.com/pr...lopment/?p=540


我可以按照指定的方式创建my.settings对象,但是我不能在form1的属性中将

form1的位置设置为mainformlocation。它需要一个

X和Y位置。


帮助!

I was googling for a way to have my single form application start in the
same location on the screen it was in when it was closed. I found this
very short article:

http://blogs.techrepublic.com.com/pr...lopment/?p=540

I can create the my.settings object as specified but I can''t set the
form1''s location to mainformlocation in form1''s properties. It takes an
X and Y location.

Help!

推荐答案

您正在查看属性窗口中的location属性。转到

顶部的属性窗口并展开应用程序设置,然后设置

的位置。

-

Terry

" cj"写道:
You are looking at the location property in the properties window. Go to the
very top of the properties window and expand ''Application Settings'' then set
the location.
--
Terry
"cj" wrote:

我正在谷歌搜索我的单一表单应用程序启动时在屏幕上的

相同位置它被关闭了。我发现这篇

非常短的文章:

http://blogs.techrepublic.com.com/pr...lopment/?p=540


我可以按照指定的方式创建my.settings对象,但是我不能在form1的属性中将

form1的位置设置为mainformlocation。需要一个

X和Y位置。


帮助!
I was googling for a way to have my single form application start in the
same location on the screen it was in when it was closed. I found this
very short article:

http://blogs.techrepublic.com.com/pr...lopment/?p=540

I can create the my.settings object as specified but I can''t set the
form1''s location to mainformlocation in form1''s properties. It takes an
X and Y location.

Help!


哇!,我以前从未见过。谢谢!文章有效。


Terry写道:
Wow!, I''d never seen that before. Thanks! And the article works.

Terry wrote:

您正在查看属性窗口中的location属性。转到

顶部的属性窗口并展开应用程序设置,然后设置

的位置。
You are looking at the location property in the properties window. Go to the
very top of the properties window and expand ''Application Settings'' then set
the location.


Terry,


现在这里是一个跟进。我有一个应用程序,我允许2个实例同时在PC上运行
。人们通常喜欢将它们传播出去,以便他们可以同时看到两者。这些设置是否允许

每个实例记住它在哪里?或者这会导致问题吗?


Terry写道:
Terry,

Now here''s a follow up. I have an app that I allow 2 instances of it to
be running on a pc at the same time. Folks usually like to spread them
out so they can see both at the same time. Will these settings allow
each instance to remember where it was? Or will this cause problems?

Terry wrote:

您正在查看属性窗口中的location属性。转到

顶部的属性窗口并展开应用程序设置,然后设置

的位置。
You are looking at the location property in the properties window. Go to the
very top of the properties window and expand ''Application Settings'' then set
the location.


这篇关于记住屏幕上的表格位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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