473,320 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 1577
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Gustavo Franco | last post by:
Hi, Basic Question, difficult answer 1) Thread one; Open Context Menu.
4
by: Aaron Queenan | last post by:
How can I use the designer to add a context menu to a class which inherits from a control, e.g. treeview, without adding the context menu to a form? For example, to add a context menu with...
2
by: Eric | last post by:
I implemented owner drawing on the main and context menus of my main form. It works fine. There is also a notify icon control that has a context menu. When the icon is in the status bar, it...
5
by: Dean L. Howen | last post by:
Dear friends, Could we determine when context menu should appear?
0
by: allen | last post by:
If I create a control library control (and change the base control from usercontrol to control). Add that control to the toolbox, then add that control to a windows form. Then add a context menu...
10
by: Sender | last post by:
I wrote about this yesterday...and many people advised the solution. But it didn't work. Let me put it again: I have a form with just command button. Then I inserted a context menu...
2
by: PJSimon | last post by:
I have a system tray icon for my application. Each time the user pastes some text into the application, I add a submenu item in the system tray's context menu. The first time I right-click the icon...
5
by: diSangro | last post by:
Hello Community, I have a question : why , if I try to use AppActivate applied to cmd.exe it doesn't work? My purpose is to run a VB script from Excel which opens a Telnet or an ftp ...
1
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
I've got one Context Menu named mi_EasterEggs with three (3) menu items: * mi_FontArial * mi_FontCourier * mi_RawData All menu items have their Visible properties set to False when the form...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.