473,238 Members | 1,851 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,238 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 7666
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....
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.