Solved

VB Help - Controlling the Task Bar

Posted on 2002-06-02
5
154 Views
Last Modified: 2010-05-02
In Windows there is a task bar the shows the programs you have running. I want to design a program that automatically kills the 3rd program on the task bar. Just close it, its gone. So only 2 programs can be running at once. This is getting to destroying popup adds that appear down there. Is there any way I can do this? Code would help.
0
Comment
Question by:Linky
  • 2
  • 2
5 Comments
 
LVL 4

Accepted Solution

by:
Monchanger earned 50 total points
ID: 7049848
Check out http://www.thescarms.com/vbasic/alttab.asp, which talks about getting a list of programs on the taskbar .

http://www.thescarms.com/vbasic/StopProcess.asp talks about how to close a window/process. Be careful if you are closing IE windows - popups usually belong to the same process.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7851382
Hi Linky,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Refund points and save as a 0-pt PAQ.

Linky, Please DO NOT accept this comment as an answer.
EXPERTS: Post a comment if you are certain that an expert deserves credit.  Explain why.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 4

Expert Comment

by:Monchanger
ID: 7863752
Obviously, I have an objection.

As asked, relevant code was given. No response from the asker saying "no, that's not good" suggests that the answer was acceptable.
I also don't see why the asker deserves a reward for abandoning the question.

Moderator - I won't pursue this. Do what you think is right.

Monchanger
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7864639
Monchanger,
Thanks for the input.  When I tried your first link, it came up broken -- but it was because I had scripting turned off.  Sorry.  I also thought that the correct answer would involve using the ITaskbarList interface.  That would be the most direct method, but the method described in the link you provided would probably work fine.  

Please note that the fact that the Asker never responded cannot be construed as evidence that the answer was acceptable.  Linky has closed 37 questions so he/she clearly knows the accepted procedure.  Most abandoned questions get that way after receiving no useful comments -- when the Asker feels he has not gotten the help needed, but sees no on-screen option to close the question with that disposition.

I am changing my recommendation to:

   Accept Monchanger's comment as an answer.

==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7912920
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now