468,310 Members | 1,368 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,310 developers. It's quick & easy.

AppActivate after a Context menu doesn't work?

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.
Nov 21 '05 #1
1 1412
DOH!

Always exhaust all posibilities before posting a question!

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

Lars G.

On Fri, 03 Dec 2004 10:51:01 +0100, Lars Gaarde <> wrote:
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.


Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Gustavo Franco | last post: by
4 posts views Thread by Aaron Queenan | last post: by
5 posts views Thread by Dean L. Howen | last post: by
reply views Thread by allen | last post: by
10 posts views Thread by Sender | last post: by
2 posts views Thread by PJSimon | last post: by
1 post views Thread by =?Utf-8?B?anAybXNmdA==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.