Hello all!
I am trying to create a replacement task bar for windows (don't ask
why..) in C#, and have run into some troubles.
I am aware that i can get a list of running processes (using
System.Diagnost ics.Process), however this is ALL processes, and i ONLY
WANT the ones that would show on the task bar normally.
I noticed that if i looked at a Processes MainWindowTitle property, i
could weed out most things i didn't want by just igoring those with an
empty Title, however this will miss a few!
Mainly, if i have a few open My Computer instances, this will only
catch the first one.
I also tried at least two methods using Windows API's (mainly
GetWindow, two different ways), but this returns even more junk i don't
want, and i don't see any way to tell which ones would be displayed on
the task bar.
Can anyone help?
Thanks in advance! 2 7686
Well, the task bar only shows available windows, not those processes.
Try using the win api like EnumWindowEx or similar functions.
As you asked, I won't ask why, but I can think the question. :-)
<ma******@gmail .com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. . Hello all!
I am trying to create a replacement task bar for windows (don't ask why..) in C#, and have run into some troubles.
I am aware that i can get a list of running processes (using System.Diagnost ics.Process), however this is ALL processes, and i ONLY WANT the ones that would show on the task bar normally.
I noticed that if i looked at a Processes MainWindowTitle property, i could weed out most things i didn't want by just igoring those with an empty Title, however this will miss a few! Mainly, if i have a few open My Computer instances, this will only catch the first one.
I also tried at least two methods using Windows API's (mainly GetWindow, two different ways), but this returns even more junk i don't want, and i don't see any way to tell which ones would be displayed on the task bar.
Can anyone help?
Thanks in advance!
I have some code using EnumWindowEx, however using it i ended up with a
lot of windows i didn't care about again. What do you mean by
"available windows" ? Have any example code?
I'll look around some more for some ways to use EnumWindowEx.
Anyone else have any examples or advice?
I'm gonna need a way to emulate the System Tray too eventually, if
anyone has any thoughts on that.
Thanks!
-Quasar
Peter Rilling wrote: Well, the task bar only shows available windows, not those processes.
Try using the win api like EnumWindowEx or similar functions.
As you asked, I won't ask why, but I can think the question. :-)
<ma******@gmail .com> wrote in message news:11******** **************@ g44g2000cwa.goo glegroups.com.. . Hello all!
I am trying to create a replacement task bar for windows (don't ask why..) in C#, and have run into some troubles.
I am aware that i can get a list of running processes (using System.Diagnost ics.Process), however this is ALL processes, and i ONLY WANT the ones that would show on the task bar normally.
I noticed that if i looked at a Processes MainWindowTitle property, i could weed out most things i didn't want by just igoring those with an empty Title, however this will miss a few! Mainly, if i have a few open My Computer instances, this will only catch the first one.
I also tried at least two methods using Windows API's (mainly GetWindow, two different ways), but this returns even more junk i don't want, and i don't see any way to tell which ones would be displayed on the task bar.
Can anyone help?
Thanks in advance! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Oliver Gräser |
last post by:
Hej,
I want to run batchfiles via the Shell, but accessible in the Browser
via IIS. Actually, I'd like the server to start a command line ntbackup
if a users selects to do so on an ASP in his webbrowser. Does anyone
know how to create a shell object in an ASP?
Thanks,
|
by: Mark Preuss |
last post by:
Hi all,
Anybody seen where if after a Build with errors the Task List won't pop up
when you click on the tab? I have to shut down the whole IDE to get it to
come up. This is in VS.NET 2003. I don't remember this occuring in
version 2002.
Thanks,
Mark
|
by: PJSimon |
last post by:
I have added task list items to my VB.Net project. After checking the project
into source safe, another user gets the latest version. When the other user
opens the project, the task list is empty.
How do I keep a list of tasks that will stay with the project?
|
by: Chris Dunaway |
last post by:
I use 'TODO's to add items to the task list to remind me of things that
I need to do. I right click the task list and choose Show Tasks > All
so that all items are shown. This works fine.
Hoever, if I perform a build and there is a build error, the task list
shows ONLY the build errors. In other words the setting of the task
list has gone back to Show Tasks > Build Errors. I then have to right
click again and reset it to All so it...
|
by: Marcus |
last post by:
Hi,
I am a newbie at C#. Here is my current problem:
I want my application to iterate through the list of tasks presented in
task manager. I want it to look at the task names and if a certain task
exist in the task list I want to kill it (as nice as possible).
I started the task manager with the following row:
System.Diagnostics.Process.Start("c:\\windows\\system32\\taskmgr.exe");
| |
by: oll3i |
last post by:
import javax.swing.*;
import java.awt.event.*;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.*;
import java.lang.reflect.*;
public class Exec1 extends JFrame implements ActionListener {
int k = 0;
|
by: Killer42 |
last post by:
Hi all.
Ok, I'm using VB6 but I think the answer to this (if there is one) is more likely to be found in the Access forum.
I have a situation where I've got tens of millions of records, spread over a bunch of separate databases. I don't have a choice about this, as the data is simply too large for a single MDB. As yet, I'm not prepared to go to SQL Server. Possibly in the not-too-distant future, but we'll see. In the meantime, I have this...
|
by: ringer |
last post by:
I have a db where each record is a certain task to be done. Each record includes the date the task should be completed. Some of the tasks are one time only but some are recurring. I have been having to create a new record for every task even the recurring ones, but I'd like to try to automate creation of the recurring tasks.
What I'm trying to do is set it up so that when I'm setting up a task I can select from a drop down box that this task...
|
by: boanet |
last post by:
I am trying to produce a scheduling form and having trouble figuring out how to approach it. Any advice would be great. Basically I created a form showing a list of tasks that need to be completed. In the header section I put a series of unbound text boxes 8-12 total showing the next 8-12 Friday weekending dates. In the detail section under the corresponding week ending the user would enter the hours budgeted for that week. An individual task...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |