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>
 
Thanks for the link! I thought that I might have to go the win api route.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top