473,394 Members | 2,063 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,394 software developers and data experts.

Create Task List or Task Bar in C#

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.Diagnostics.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!

Feb 7 '06 #1
2 7671
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.googlegr oups.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.Diagnostics.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!

Feb 7 '06 #2
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.googlegr oups.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.Diagnostics.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!


Feb 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
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...
3
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...
4
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....
0
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. ...
6
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...
0
oll3i
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...
15
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...
4
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...
1
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....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...

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.