弹出程序焦点问题 [英] Popup program focus issue

查看:83
本文介绍了弹出程序焦点问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候:


我使用.NET弹出遗留应用程序的图形窗口

(还记得IBM System / 23吗?)。为了获得良好的性能,我在
创建了一个GUI Broker Server和一个Client Stub。客户端只使用

Win32 API,速度非常快。服务器在后台运行,使用.NET

(从而消除了单个应用程序的启动时间)。


性能非常好,没有问题那里。但是,由于服务器产生的窗口没有来到

前面,我有一个关注焦点的问题。


我会因为提出这个问题而感到愚蠢,但我还没有做过很多

之前的Windows编程,.NET或其他。


到目前为止,我已尝试在各种Form事件中执行Me.Focus,但是

似乎没有做任何事情。我的下一个猜测是以某种方式将焦点称为服务器,但是从来没有表格显示。


基本上,我的问题是,我该如何强迫一个应用程序弹出

在所有其他窗口的前面?


谢谢,


James

Greetings:

I am using .NET to pop up a graphical window for a legacy application
(remember the IBM System/23?). In order to achieve good performance, I
created a GUI Broker Server and a Client Stub. The Client just uses the
Win32 API and is very fast. The Server runs in the background, using .NET
(thus eliminating the startup time for an individual application).

The performance is very good, no problems there. However, I am having
an issue with focusing as the window spawned by the Server does not come to
the front.

I *would* feel stupid for asking this question, but I haven''t done a lot
of Windows programming before, .NET or otherwise.

So far, I''ve tried executing Me.Focus in various Form events, but that
doesn''t appear to do anything. My next guess is to call focus somehow for
the Server, but that never has a form showing.

Basically, my question is, how do I force an application to pop up to
the front of all other windows?

Thanks,

James

推荐答案

尝试


me.activate()


- -


OHM(特里伯恩斯)

。 。 。单手人。 。

如果你需要我的电子邮件,请问我


当你不知道自己在做什么时,过得很快


" James Pyrich" < PY ***** @ collectionsoftware.com>在消息中写道

news:e0 ************* @ TK2MSFTNGP11.phx.gbl ...
try

me.activate()

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don''t know what you''re doing

"James Pyrich" <py*****@collectionsoftware.com> wrote in message
news:e0*************@TK2MSFTNGP11.phx.gbl...
问候:

我使用.NET为遗留应用程序弹出一个图形窗口
(还记得IBM System / 23吗?)。为了获得良好的性能,我创建了一个GUI Broker Server和一个Client Stub。客户端只使用
Win32 API,速度非常快。服务器在后台运行,使用.NET
(从而消除了单个应用程序的启动时间)。

性能非常好,没有问题。但是,由于服务器产生的窗口没有来到
前面,我有一个关注焦点的问题。

我*会因为问这个问题而感到愚蠢,但是之前我还没有完成过很多
的Windows编程,.NET或其他。

到目前为止,我已尝试在各种Form事件中执行Me.Focus,但是
似乎没有做任何事情。我的下一个猜测是以某种方式为服务器调用焦点,但是从来没有表单显示。

基本上,我的问题是,如何强制应用程序弹出
谢谢,

James
Greetings:

I am using .NET to pop up a graphical window for a legacy application
(remember the IBM System/23?). In order to achieve good performance, I
created a GUI Broker Server and a Client Stub. The Client just uses the
Win32 API and is very fast. The Server runs in the background, using .NET
(thus eliminating the startup time for an individual application).

The performance is very good, no problems there. However, I am having
an issue with focusing as the window spawned by the Server does not come to the front.

I *would* feel stupid for asking this question, but I haven''t done a lot of Windows programming before, .NET or otherwise.

So far, I''ve tried executing Me.Focus in various Form events, but that
doesn''t appear to do anything. My next guess is to call focus somehow for
the Server, but that never has a form showing.

Basically, my question is, how do I force an application to pop up to
the front of all other windows?

Thanks,

James



这只会使弹出窗口的任务栏条目闪烁。


One Handed Man(OHM - Terry Burns) < news.microsoft.com>在留言中写道

新闻:%2 *************** @ TK2MSFTNGP12.phx.gbl ...
That just makes the taskbar entry for the pop up window flash.

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
试试

me.activate()

-

OHM(特里伯恩斯)
。 。 。单手人。 。
如果你需要我的电子邮件,请问我

当你不知道自己在做什么时,过得很快

James Pyrich < PY ***** @ collectionsoftware.com>在消息中写道
新闻:e0 ************* @ TK2MSFTNGP11.phx.gbl ...
try

me.activate()

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don''t know what you''re doing

"James Pyrich" <py*****@collectionsoftware.com> wrote in message
news:e0*************@TK2MSFTNGP11.phx.gbl...
问候:

我正在使用.NET为遗留应用程序弹出一个图形窗口
(还记得IBM System / 23吗?)。为了获得良好的性能,我创建了一个GUI Broker Server和一个Client Stub。客户端只使用
Win32 API,速度非常快。服务器在后台运行,使用
.NET
(从而消除了单个应用程序的启动时间)。

性能非常好,没有问题。但是,由于服务器产生的窗口没有
Greetings:

I am using .NET to pop up a graphical window for a legacy application
(remember the IBM System/23?). In order to achieve good performance, I
created a GUI Broker Server and a Client Stub. The Client just uses the
Win32 API and is very fast. The Server runs in the background, using
.NET
(thus eliminating the startup time for an individual application).

The performance is very good, no problems there. However, I am
having
an issue with focusing as the window spawned by the Server does not come


前面,我有一个关注焦点的问题。

我*会因为提出这个问题而感到愚蠢,但我还没有做过
the front.

I *would* feel stupid for asking this question, but I haven''t done a


很多

之前的Windows编程,.NET或其他。

到目前为止,我已尝试在各种表格活动中执行Me.Focus,但

似乎没有做任何事情。我的下一个猜测是以某种方式调用焦点
服务器,但是从来没有表单显示。

基本上,我的问题是,如何强制应用程序弹出所有其他窗户的前面是什么?

谢谢,

James
of Windows programming before, .NET or otherwise.

So far, I''ve tried executing Me.Focus in various Form events, but
that
doesn''t appear to do anything. My next guess is to call focus somehow
for
the Server, but that never has a form showing.

Basically, my question is, how do I force an application to pop up to
the front of all other windows?

Thanks,

James




O,然后你可以在激活后最大化或恢复


-


OHM(特里伯恩斯)

。 。 。单手人。 。

如果你需要我的电子邮件,请问我


当你不知道自己在做什么时,过得很快


" James Pyrich" < PY ***** @ collectionsoftware.com>在消息中写道

新闻:eo ************** @ TK2MSFTNGP12.phx.gbl ...
O, then can you maximise or restore after the activate

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don''t know what you''re doing

"James Pyrich" <py*****@collectionsoftware.com> wrote in message
news:eo**************@TK2MSFTNGP12.phx.gbl...
这只是制作任务栏弹出窗口闪光灯的进入。

一手汉语(OHM - Terry Burns) < news.microsoft.com>写在
消息新闻:%2 *************** @ TK2MSFTNGP12.phx.gbl ...
That just makes the taskbar entry for the pop up window flash.

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message news:%2***************@TK2MSFTNGP12.phx.gbl...
试试

me.activate()

-

OHM(特里伯恩斯)
。 。 。单手人。 。
如果你需要我的电子邮件,请问我

当你不知道自己在做什么时,过得很快

James Pyrich < PY ***** @ collectionsoftware.com>在消息中写道
新闻:e0 ************* @ TK2MSFTNGP11.phx.gbl ...
try

me.activate()

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don''t know what you''re doing

"James Pyrich" <py*****@collectionsoftware.com> wrote in message
news:e0*************@TK2MSFTNGP11.phx.gbl...
问候:

我正在使用.NET为遗留的
应用程序弹出一个图形窗口(还记得IBM System / 23吗?)。为了获得良好的性能,我创建了一个GUI Broker Server和一个Client Stub。客户端只使用
Win32 API并且非常快。服务器在后台运行,使用
.NET
(从而消除了单个应用程序的启动时间)。

性能非常好,没有问题。但是,由于服务器产生的窗口没有
Greetings:

I am using .NET to pop up a graphical window for a legacy application (remember the IBM System/23?). In order to achieve good performance, I
created a GUI Broker Server and a Client Stub. The Client just uses the Win32 API and is very fast. The Server runs in the background, using
.NET
(thus eliminating the startup time for an individual application).

The performance is very good, no problems there. However, I am
having
an issue with focusing as the window spawned by the Server does not come
前面。

我*会因为问这个问题而感到愚蠢,但我还没做过
the front.

I *would* feel stupid for asking this question, but I haven''t done


a很多


到目前为止,我已尝试在各种Form事件中执行Me.Focus,但

没有''似乎做了什么。我的下一个猜测是以某种方式调用焦点
服务器,但是从来没有表单显示。

基本上,我的问题是,如何强制应用程序弹出up
of Windows programming before, .NET or otherwise.

So far, I''ve tried executing Me.Focus in various Form events, but
that
doesn''t appear to do anything. My next guess is to call focus somehow
for
the Server, but that never has a form showing.

Basically, my question is, how do I force an application to pop up



到所有其他窗口的前面?

谢谢,

詹姆斯


to the front of all other windows?

Thanks,

James





这篇关于弹出程序焦点问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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