AppActivate after a Context menu doesn't work?

L

Lars Gaarde

I need to activate another application, after clicking in a right
click menu/context menu in my application.

Problem is that the other application doesn't get activated and
brought to the front as expected.

All it does is flash it's "icon" in the taskbar. I then have to click
on the flashing icon, to actually activate the other application.

If i call AppActivate directly from a commandbutton it works just
fine, but when calling it from a Context menu, no luck.

I have also tried going the API way with Setforeground window and so
on, but with the same results.

Anybody have a solution to this problem?

Regards

Lars G.
 
L

Lars Gaarde

DOH!

Always exhaust all posibilities before posting a question!

Just do AppActivate via a Thread, and it will work as expected.

Lars G.
 

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

Top