Click here to Skip to main content
15,748,082 members
Please Sign up or sign in to vote.
4.67/5 (3 votes)
See more:
I recently created an application that creates a second desktop. I now need the new desktop to have its own taskbar. I am having troubles finding information on this subject. Any help or ideas on where to search would be appreciated.
Ed Nutting 18-May-11 14:55pm    
What do you mean, 'creates a second desktop'? There is only one desktop on Windows. What you are wanting is to extend the taskbar onto the next screen, is that what you mean?
Dave Kreskowiak 18-May-11 16:30pm    
There is NOT 1 desktop in Windows. There are several. The logon screen is it's own desktop, services run under a seperate desktop, screen savers are a seperate desktop, the UAC prompt box is a seperate desktop (just with a picture of the user desktop on it, grayed a bit) and the sole dialog asking if you want to proceed.
fcronin 18-May-11 15:48pm    
Well, if you really are creating a 'desktop' in your own application, the only suggestion I could make to you would be docking a toolstrip to the bottom of the your container.
bcomer79 18-May-11 16:10pm    
Right now I am in the process of making the application. It starts with a form that has a button on it. When the button is pressed a blank desktop is created. I use the a CreateDesktop API to make a new desktop. The problem is that it is created without a taskbar. I will probably just create a form and use it like the taskbar.
bcomer79 27-May-11 11:56am    
I have ran into another issue on this project. The second desktop hides the task manager, but only on a computer with a systems unit(tower). When I run the second desktop on a laptop the task manager will become visible. I am trying to figure out why, so any help would be appreciated.

You don't have a TaskBar on that desktop because Explorer puts that up and only supports doing that on the user desktop. It won't put the taskbar on another desktop that you specify. I haven't been able to find anything that says you can or how to do it.
Share this answer
bcomer79 18-May-11 22:35pm    
Thank you Dave. I was hoping that someone would have found what I could not.
I found that you could start explorer.exe with the second desktop and then the desktop has its own taskbar.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900