AppActivate after a Context menu doesn't work?

  • Thread starter Thread starter Lars Gaarde
  • Start date Start date
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.
 
DOH!

Always exhaust all posibilities before posting a question!

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

Lars G.
 
Back
Top