在设计模式下表示正常,在运行模式下裁剪,仅在我的显示器上 [英] Forms ok in design mode, cropped in run mode, only on my monitor

查看:75
本文介绍了在设计模式下表示正常,在运行模式下裁剪,仅在我的显示器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,祝新年快乐!


我有这个应用程序,有人写道我是

有点退房。这些表单在设计中看起来很好

模式,但是当我运行应用程序时,几乎每个表单底部都会显示出来。

。如果有一个模式的话,我还没想到

。我比较了两个

表格 - 一个看起来不错,一个被裁剪,

除了大小和接受按钮和

取消按钮,它们的属性是相同的。

我没有在代码中看到任何修改

表格大小的内容。


如果重要的话,表格都会显示为对话框。


之前有人见过这样的话,或者

做你有什么想法我怎么弄清楚如何修理它?


我和应用程序的原作者交谈过,

,在他的屏幕上以及其他人看过该应用程序的屏幕上都很好看。


我会感激任何你能给我提供的建议。

BTW,我正在使用VB2005。


提前致谢,

Robin S.

Hello to all, and happy new year!

I have this application that someone wrote that I''m
sort of checking out. The forms look fine in design
mode, but when I run the application, it crops off
the bottom of almost every form. I haven''t figured
out yet if there''s a pattern to it. I compared two
forms -- one that looks okay and one that gets cropped,
and aside from the size and the accept button and
the cancel button, their properties are identical.
I don''t see anything in the code that is modifying
the size of the form, either.

The forms are all displayed as dialogs, if that matters.

Has anybody seen something like this before, or
do you have any ideas how I can figure out how to
fix it?

I talked to the original author of the application,
and it looks fine on his screen and on other people''s
screens who have looked at the application.

I''d appreciate any advice you can offer me.
BTW, I''m using VB2005.

Thanks in advance,
Robin S.

推荐答案

也许你应该问圣诞老人一个好品牌打屁股新显示器:)


严重但是...



您可能想尝试调整任何视频卡和/或显示器设置

你可以找到 - 比如刷新率等。


除此之外它是'比如''一根绳子有多长?''。

RobinS < Ro **** @ NoSpam.yah.nonewrote in message

news:KP ************************ ******@comcast.com。 ..
Maybe you should have asked Santa for a nice brand spanking new monitor :)

Seriously though ...

What happens if you plug another monitor into your computer? If it still
happens then it would be more likely to be a problem with your video card
than your monitor.

You might want to try tweaking whatever video card and/or monitor settings
you can find - like refresh rate etc.

Apart from that it''s like ''how long is a piece of string?''.
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:KP******************************@comcast.com. ..

大家好,祝新年快乐!


我有这个应用,有人写道我是'' m

有点退房。这些表单在设计中看起来很好

模式,但是当我运行应用程序时,几乎每个表单底部都会显示出来。

。如果有一个模式的话,我还没想到

。我比较了两个

表格 - 一个看起来不错,一个被裁剪,

除了大小和接受按钮和

取消按钮,它们的属性是相同的。

我没有在代码中看到任何修改

表格大小的内容。


如果重要的话,表格都会显示为对话框。


之前有人见过这样的话,或者

做你有什么想法我怎么弄清楚如何修理它?


我和应用程序的原作者交谈过,

,在他的屏幕上以及其他人看过该应用程序的屏幕上都很好看。


我会感激任何你能给我提供的建议。

BTW,我正在使用VB2005。


提前致谢,

Robin S.
Hello to all, and happy new year!

I have this application that someone wrote that I''m
sort of checking out. The forms look fine in design
mode, but when I run the application, it crops off
the bottom of almost every form. I haven''t figured
out yet if there''s a pattern to it. I compared two
forms -- one that looks okay and one that gets cropped,
and aside from the size and the accept button and
the cancel button, their properties are identical.
I don''t see anything in the code that is modifying
the size of the form, either.

The forms are all displayed as dialogs, if that matters.

Has anybody seen something like this before, or
do you have any ideas how I can figure out how to
fix it?

I talked to the original author of the application,
and it looks fine on his screen and on other people''s
screens who have looked at the application.

I''d appreciate any advice you can offer me.
BTW, I''m using VB2005.

Thanks in advance,
Robin S.



Darn,我希望这会有所帮助,但事实并非如此。我的笔记本电脑的

分辨率为1400x1050。它在我的

秒(20.1英寸)监视器上进行扩展桌面,即1680x1050。它在两台显示器上显示相同的

方式。


这里有一个奇怪的事情:它不会在* I *开发的应用程序上执行。


这里有一个更奇怪的事情:我创建了一个新的表单,将大小设置为与他相同的

。然后我将他的所有控件复制到我的新表单上,

然后将他编写的所有代码隐藏复制到我的新

表单中,并确保所有

的[size]和[location]信息匹配的表单和控件。然后我更改了其他代码来调用

我的表单而不是他的,它看起来很好。


我比较了Designer.vb文件和大小所有控件

是不同的(即使我复制并将它们粘贴到我的中)。

至于表单设置,AutoScaleDimensions和ClientSize

不同。属性和控件中所有尺寸的

两种形式都是一样的;它只是在生成的代码中有所不同。


在使用它之后,我发现如果我在

屏幕上移动一个控件,或者更改屏幕上的任何内容(即使我将其更改回来)

然后保存表单,它会重新生成Designer.vb文件和

AutoScaleDimensions来自(6.0 !, 13.0!)到(8.0!,16.0!)。

并且客户端大小更改(634,455)到(845,560)。


注意在

设计模式中,表单中显示的所有属性都没有变化。


(在这里插入Twilight Zone音乐)


有没有办法重新生成除了

之外的designer.vb文件更改每个表单(有很多这些)? (重建

解决方案不会这样做,万一你想知道)。


如果我想部署一个应用程序,这是否意味着在电脑上

,分辨率高于我的,我将不得不处理代码中的

尺寸?


可以我现在有理由买30英寸的监控?或者我应该把我的笔记本电脑连接到我的42英寸。等离子监视器/电视?哇。想想

房地产。嗯。


Robin S.

------------------------- -


" Stephany Young" < noone @ localhostwrote in message

news:e6 ************** @ TK2MSFTNGP02.phx.gbl ...
Darn, I was hoping that would help, but it didn''t. My laptop''s
resolution is 1400x1050. It does an extended desktop onto my
second (20.1") monitor that is 1680x1050. It displays the same
way on both monitors.

Here''s a weird thing: it doesn''t do it on applications that *I* develop.

Here''s a weirder thing: I created a new form, set the size to the
same as his. Then I copied all of his controls onto my new form,
then copied all of the code-behind that he had written into my new
form, and made sure all of the [size] and [location] information for
the form and controls matched. Then I changed the other code to call
my form instead of his, and it looks fine.

I compared the Designer.vb files, and the size of all the controls
is different (even though I copied his and pasted them into mine).
And as for the form settings, the AutoScaleDimensions and ClientSize
are different. All of the sizes in the properties and controls for
both forms is the same; it''s only different in the generated code.

After mucking around with it, I found if I move a control on the
screen, or change anything on the screen (even if I change it back)
and then save the form, it regenerates the Designer.vb file and
the AutoScaleDimensions goes from (6.0!, 13.0!) to (8.0!, 16.0!).
And the client size changes (634, 455) to (845, 560).

Note that none of the properties displayed for the form in
design mode have changed.

(insert Twilight Zone music here)

Is there some way to regenerate the designer.vb files other than
changing each form (there are a lot of them)? (Rebuilding the
solution doesn''t do it, in case you''re wondering).

Does this mean if I want to deploy an application on a computer
with a higher resolution than mine, I will have to handle the
sizing in the code?

Can I now justify buying a 30" monitor? Or should I just hook
my laptop up to my 42" plasma monitor/tv? Wow. Just think of the
real estate. Hmmmm.

Robin S.
---------------------------

"Stephany Young" <noone@localhostwrote in message
news:e6**************@TK2MSFTNGP02.phx.gbl...

也许你应该问圣诞老人一个好品牌打屁股新的

监视器:)


严重但是...


如果将另一台显示器插入计算机会怎样?如果它仍然发生
那么你的

视频卡比你的显示器更容易出现问题。


您可能想尝试调整任何视频卡和/或监视器

设置,例如刷新率等。


除此之外它是'比如''一根绳子有多长?''。


" RobinS" < Ro **** @ NoSpam.yah.nonewrote in message

news:KP ************************ ******@comcast.com。 ..
Maybe you should have asked Santa for a nice brand spanking new
monitor :)

Seriously though ...

What happens if you plug another monitor into your computer? If it
still happens then it would be more likely to be a problem with your
video card than your monitor.

You might want to try tweaking whatever video card and/or monitor
settings you can find - like refresh rate etc.

Apart from that it''s like ''how long is a piece of string?''.
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:KP******************************@comcast.com. ..

>大家好,祝新年快乐!

我有这个应用,有人写道,我是<检查结束。这些表单在设计
模式下看起来很好,但是当我运行应用程序时,它会在几乎每个表单的底部裁剪掉。如果它有一个模式,我还没想出来。我比较了两种形式 - 一种看起来不错,一种被裁剪,
除了尺寸和接受按钮和取消按钮,它们的属性是相同的。
我在代码中没有看到任何修改表单大小的内容。

如果重要的话,表单都会显示为对话框。

以前有没有人见过这样的东西,或者你有什么想法我怎么弄清楚如何解决它?

我和原作者交谈过该应用程序,
并且在他的屏幕和其他人的屏幕上看起来很好看,他们看过这个应用程序。

我很感激您的任何建议可以提供给我。
BTW,我正在使用VB2005。

提前致谢,
Robin S.
>Hello to all, and happy new year!

I have this application that someone wrote that I''m
sort of checking out. The forms look fine in design
mode, but when I run the application, it crops off
the bottom of almost every form. I haven''t figured
out yet if there''s a pattern to it. I compared two
forms -- one that looks okay and one that gets cropped,
and aside from the size and the accept button and
the cancel button, their properties are identical.
I don''t see anything in the code that is modifying
the size of the form, either.

The forms are all displayed as dialogs, if that matters.

Has anybody seen something like this before, or
do you have any ideas how I can figure out how to
fix it?

I talked to the original author of the application,
and it looks fine on his screen and on other people''s
screens who have looked at the application.

I''d appreciate any advice you can offer me.
BTW, I''m using VB2005.

Thanks in advance,
Robin S.




" RobinS" < Ro **** @ NoSpam.yah.nonewrote:
"RobinS" <Ro****@NoSpam.yah.nonewrote:

>我有这个应用程序有人写道我是
退房。这些表单在设计
模式下看起来很好,但是当我运行应用程序时,它会在几乎每个表单的底部裁剪掉。
>I have this application that someone wrote that I''m
sort of checking out. The forms look fine in design
mode, but when I run the application, it crops off
the bottom of almost every form.



我想知道它是否与

显示>属性>设置>高级>字体(120dpi / 96dpi)?


他们是在不同的

系统上出现错误对话的常见原因。

-

Lucian

I wonder if it has to do with
Display>Properties>Settings>Advanced>Fonts (120dpi/96dpi) ?

They''re a common reason for dialogs to look wrong on different
systems.

--
Lucian


这篇关于在设计模式下表示正常,在运行模式下裁剪,仅在我的显示器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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