在屏幕上修复表单 [英] Fixing a form on the screen

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

问题描述

我的程序产生了许多概述,其中

我使用不同的形式,显示。这些表格是在屏幕上的某些位置显示的
。我不想让程序的用户开始移动它们。


有没有办法修复屏幕上显示的表格所以

他们不能动摇吗?


谢谢。


-

Patrick

-

问候,

Patrick De Ridder。

My program produces a number of overviews, for which
I use different forms, which are displayed. These forms are
displayed at certain positions on the screen. I don''t want
the user of the program to start moving them about.

Is there a way to fix displayed forms on the screen so
they cannot be moved about?

Thanks.

--
Patrick
--
Regards,
Patrick De Ridder.

推荐答案




Patrick De Ridder写道:
Hi,

Patrick De Ridder wrote:
我的程序会产生一些概述,为此我使用不同的形式,显示。这些表格会显示在屏幕上的某些位置。我不想让程序的用户开始移动它们。

有没有办法在屏幕上修复显示的表格,所以
它们无法移动?
My program produces a number of overviews, for which
I use different forms, which are displayed. These forms are
displayed at certain positions on the screen. I don''t want
the user of the program to start moving them about.

Is there a way to fix displayed forms on the screen so
they cannot be moved about?




可能你不想为此使用Forms。你可以使用UserControl

吗?我相信它有一个类似于设计师的设计师,所以它不应该太差别了。


Pete



Probably you don''t want to use Forms for this. Can you use a UserControl
instead? I believe it has a designer like that for forms so it shouldn''t be
too different.

Pete

< br>

2003年8月28日星期四23:42:10 + 0100,Pete < PV ***** @ gawab.com>写道:
On Thu, 28 Aug 2003 23:42:10 +0100, "Pete" <pv*****@gawab.com> wrote:
也许你不想为此使用Forms。你可以使用UserControl吗?我相信它有一个类似于设计师的设计师所以它不应该太差异。
Probably you don''t want to use Forms for this. Can you use a UserControl
instead? I believe it has a designer like that for forms so it shouldn''t be
too different.




如果我创建一个用户控件并将其称为所以从主表单


UserControl1 usc = new UserControl1();

usc.Show();


什么都没发生。我应该做什么呢?


-

谢谢

Patrick De Ridder。



If I create a user control and call it like so from the main form

UserControl1 usc = new UserControl1();
usc.Show();

Nothing happens. What is it that I should do instead?

--
Thanks
Patrick De Ridder.


你必须删除标题栏上的所有按钮,然后将

标题栏文本设置为空。此时可以锚定您的

窗口,这样用户就不能简单地拖动它们(还有其他方法

来移动你的窗口更复杂,但我不知道如何修复

这里的那些)。


在你的表单上设置ControlBox,MinimizeBox,MaximizeBox全部为false,然后设置

Text属性为空字符串""或string.Empty。如果我错过了一个属性

,只需要搜索标题栏中显示的其他按钮。你

应该也可以将FormBorderStyle设置为FixedSingle。


-

贾斯汀罗杰斯

DigiTec Web Consultants,LLC。


" Patrick De Ridder" < 00*@000.com>在消息中写道

news:ul ******************************** @ 4ax.com ...
You have to remove all of the buttons on the title bar and then set the
Title bar text to nothing. At this point it becomes possible to anchor your
windows so users can''t simply drag them around (there are still other ways
to move your window that are more complex, but I won''t go in to how to fix
those here).

On your form set ControlBox, MinimizeBox, MaximizeBox all to false, then set
Text property to an empty string "" or string.Empty. If I missed a property
just do some searching for other buttons that show up in the title bar. You
should probably also set the FormBorderStyle to FixedSingle.

--
Justin Rogers
DigiTec Web Consultants, LLC.

"Patrick De Ridder" <00*@000.com> wrote in message
news:ul********************************@4ax.com...
On Thu,2003年8月28日23:42:10 +0100,Pete < PV ***** @ gawab.com>写道:
On Thu, 28 Aug 2003 23:42:10 +0100, "Pete" <pv*****@gawab.com> wrote:
也许你不想为此使用Forms。你可以使用UserControl吗?我认为它有一个类似于设计师的设计师所以它不应该是不同的。
Probably you don''t want to use Forms for this. Can you use a UserControl
instead? I believe it has a designer like that for forms so it shouldn''t betoo different.



如果我创建一个用户控件并从主窗体调用它

UserControl1 usc = new UserControl1();
usc.Show();

没有任何反应。我该做什么呢?

-
谢谢Patrick De Ridder。



If I create a user control and call it like so from the main form

UserControl1 usc = new UserControl1();
usc.Show();

Nothing happens. What is it that I should do instead?

--
Thanks
Patrick De Ridder.



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

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