How to Activate() a window

  • Thread starter Thread starter Bobby C. Jones
  • Start date Start date
B

Bobby C. Jones

I have a Hwnd for a window that I want to bring to the front and give focus.
This window is not part of my application, but is being controlled by my
app. I get the Hwnd from the applications COM object model. Can I take
this Hwnd and give the form focus? Thanks!
 
* "Bobby C. Jones said:
I have a Hwnd for a window that I want to bring to the front and give focus.
This window is not part of my application, but is being controlled by my
app. I get the Hwnd from the applications COM object model. Can I take
this Hwnd and give the form focus? Thanks!

You can translate this VB6 sample:

<http://www.mvps.org/vb/code/ForceFore.zip>
 
Back
Top