使用任务栏打开Form Maximized和ShowDialog? [英] Open Form Maximzed and ShowDialog with Task Bar?

查看:71
本文介绍了使用任务栏打开Form Maximized和ShowDialog?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我有一些非常具体的需求,我无法找到一个好的解决方案。

我需要的是:

- 当用户在菜单中做出选择时,他选择的表格必须打开,但是:

- 此表格必须打开最大化

- 用户不应该看到''主要应用程序'',直到他b / b
关闭此表格!


乍一看我用MyNewForm.ShowDialog(Me)试了一下。

问题是当MyNewForm.WindowState =最大化时,它会在任务栏之前打开

!我不想要它做什么!


我可以打开它WindowState = norma,并将它的宽度调高到

屏幕大小,但这给我另一个问题:当一个表格没有

最大化时,用户可以使用表格拖放,并替换它,所以
$ b $它的一部分不再是在屏幕上了。这是我没有想要的事情......


我知道我的要求可能有点要求,但问题是

这个应用程序适用于那些没有精神状态的人,我们希望他们能够拥有它们,所以它需要非常基本且完全像

这样他们就不会混淆了(他们现在这样做:-()。


非常感谢提前,


Pieter

Hi,

I have some very specific needs, and I am not able to find a nice solution.
What I need is:
- when the user makes a choice in the Menu, the Form of his choice must
open, but:
- this Form must open Maximized
- and the user shouldn''t be able to see the ''Main application'' until he
closed this Form!

At first sight I tried it with MyNewForm.ShowDialog(Me).
The problem is that when MyNewForm.WindowState = Maximized, it opens before
the Task Bar! Which I don''t want it to do!

I could open it WindowState = norma, and adjust it''s Width en Height to the
screen-size, but that gives me another problem: When a Form is not
Maximized, the user can do a drag and drop with the Form, and replace it, so
a part of it won''t be anymore on the Screen. This is behaviuo that I don''t
want...

I know that my demands are maybe a little to demanding, but the problem is
that this application is for people who aren''t mentally at the level we
would like them to have, so it needs to be really basic and exactly like
this so they can''t get confused (which they do now :-( ).

Thanks a lot in advance,

Pieter

推荐答案

mhhh我错过了我的第一个答案。好的,让我们再来一次;)


也许你可以解释一下你的意思:


当MyNewForm.WindowState =最大化时,它打开之前

任务栏!我不想要它做什么!


我试图明白这一点,但我无法理解。

mhhh i am missing my first answer. Ok let''s do it a second time ;)

Maybe you can explain what you mean with:

when MyNewForm.WindowState = Maximized, it opens before
the Task Bar! Which I don''t want it to do!

I tried to understand that, but i cannot get it.

使用更多的代码会更容易,但为什么不隐藏当前的

表格,并按照正常情况显示新的?


例如:

Me.Hide()

MyNewForm.WindowState =最大化

MyNewForm.Show()

当MyNewForm

关闭时,您当然需要显示父表格(上面的我)。


Jevon

彼得 < PI ********** @ hotmail.com>在消息中写道

新闻:Ow ************** @ TK2MSFTNGP10.phx.gbl ...
This would be easier with a bit more code, but why not just Hide the current
form, and display the new one as per normal?

E.g.:
Me.Hide()
MyNewForm.WindowState = Maximized
MyNewForm.Show()

You will of course need to show the parent form (Me above) when MyNewForm is
closed.

Jevon
"Pieter" <pi**********@hotmail.com> wrote in message
news:Ow**************@TK2MSFTNGP10.phx.gbl...

我有一些非常具体的需求,我无法找到一个很好的解决方案。我需要的是:
- 当用户在菜单中做出选择时,他选择的表格必须打开,但是:
- 此表格必须打开最大化
- 和在他关闭此表格之前,用户不应该看到主要应用程序!

乍一看,我用MyNewForm.ShowDialog(Me)尝试了。<问题是,当MyNewForm.WindowState =最大化时,它会在任务栏之前打开
!我不想要它做什么!

我可以打开它WindowState = norma,并调整它的宽度和高度来调整屏幕大小,但这给了我另一个问题:当一个表格没有最大化时,用户可以使用表格进行拖放,然后将其替换,
因此屏幕上不再有部分内容。这是我不想要的行为......

我知道我的要求可能有点要求,但问题是这个应用程序适用于那些心理上没有我们希望他们拥有的人,所以它需要非常基本和完全一样,所以他们不能混淆(他们现在做的事情: - ()。

非常感谢提前,

Pieter
Hi,

I have some very specific needs, and I am not able to find a nice
solution. What I need is:
- when the user makes a choice in the Menu, the Form of his choice must
open, but:
- this Form must open Maximized
- and the user shouldn''t be able to see the ''Main application'' until he
closed this Form!

At first sight I tried it with MyNewForm.ShowDialog(Me).
The problem is that when MyNewForm.WindowState = Maximized, it opens
before the Task Bar! Which I don''t want it to do!

I could open it WindowState = norma, and adjust it''s Width en Height to
the screen-size, but that gives me another problem: When a Form is not
Maximized, the user can do a drag and drop with the Form, and replace it,
so a part of it won''t be anymore on the Screen. This is behaviuo that I
don''t want...

I know that my demands are maybe a little to demanding, but the problem is
that this application is for people who aren''t mentally at the level we
would like them to have, so it needs to be really basic and exactly like
this so they can''t get confused (which they do now :-( ).

Thanks a lot in advance,

Pieter



呵呵,我没有我的意思是非常好。我的意思是:如果你打开一个表格

作为ShowDialog,它是最大化的,它将占据整个屏幕,也就是

任务栏(屏幕底部带有开始按钮

等的东西)通常会显示...最大化的普通表格将需要

整个屏幕,除了屏幕底部的任务栏。


所以总结:

MyNewForm.WindowState =最大化

MyNewForm.ShowDialog(Me)
- > MyNewform的高度将是= Screen.Height


如果您这样做:

MyNewForm.WindowState = Maximized

MyNewForm.Show

- > MyNewform的高度将是= Screen.Height -

TheHeightOfTheTaskbar :-) - >这就是我想要的:-)

" necroph" <是ne ***** @ aol.com>在消息中写道

news:11 ********************** @ g14g2000cwa.googlegr oups.com ...
Hehe ok I didn''t explain it very good. what I meant was: If you open a Form
as ShowDialog, and it is maximzed, it will take the whole screen, also where
the Taskbar (the thing at the bottom of the screen with the Start-button
etc) is normally shown... A normal Form that is maximized will take the
whole screen, except the taskbar at the bottom of the screen.

So the summary:
MyNewForm.WindowState = Maximized
MyNewForm.ShowDialog(Me)
-> The height of MyNewform will be = Screen.Height

if you do instead:
MyNewForm.WindowState = Maximized
MyNewForm.Show
-> The height of MyNewform will be = Screen.Height -
TheHeightOfTheTaskbar :-) -> it''s this that I want :-)
"necroph" <ne*****@aol.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
mhhh我错过了我的第一个答案。好的,让我们第二次这样做;)

也许你可以解释一下你的意思:

当MyNewForm.WindowState =最大化时,它会在
任务栏!我不想要它做什么!

我试图理解这一点,但我无法理解。
mhhh i am missing my first answer. Ok let''s do it a second time ;)

Maybe you can explain what you mean with:

when MyNewForm.WindowState = Maximized, it opens before
the Task Bar! Which I don''t want it to do!

I tried to understand that, but i cannot get it.



这篇关于使用任务栏打开Form Maximized和ShowDialog?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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