J
James Pyrich
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
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