• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 895
  • Last Modified:

Visual Studio 2008 C# Appbar style

Hello All,
I have this form app I am creating that I want to function like the Windows Task Bar.  I had found a site that indicated the same but I was unsucessful implementing it into my program.  I had used http://www.codeproject.com/KB/dotnet/AppBar.aspx referenced in another post on here but was as I said unsucessful.  
I am wanting it to be docked center top and hide when not in use.  Completely the same as the task bar.  If someone could walk me through this or show me so I can use it in the future it would be appreciated.  Thanks!

If any further info is needed let me know.  Thanks!
0
Andrew Bass
Asked:
Andrew Bass
  • 9
  • 8
1 Solution
 
daveamourCommented:
How are you planning on activating(unhiding) the app?
0
 
Andrew BassAuthor Commented:
I would like it to be like the Windows Task Bar, and when the mouse is hovered at the top of the screen it show.  When no componets are active i want it to hide when not hovered over.
0
 
daveamourCommented:
Ok sorry I understand now.
I was getting confused an instead of Windows Task bar I was thinking Windows Task Manager!
Ok I shall have a think about this one now I get what you mean...
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
Andrew BassAuthor Commented:
Thanks for the help Dave :)
0
 
daveamourCommented:
Ok thinking about this Can we just...
Create a form which places itself at the top of the screen as wide as the screen and so many pixels high.
Have it render in 2 modes.
First mode is a form with 1% Opacity.  When the mouse hovers over it change the form to show the actual form with whatever in there and vice versa when the mouse moves away.
Is this of any use?
0
 
Andrew BassAuthor Commented:
Hey Dave,  that unfortunately would not be an option.  I need the space on the client app to be available when they are not using it so it does not interfere with their operation of other apps.
0
 
daveamourCommented:
Hmm yes I see what you mean.
So I think you may have to look at some unmanged code - ie API calls.
Is that what you thought you might have to do?
0
 
Andrew BassAuthor Commented:
Havent thought about it honestly.  Had looked at that link above, and into the ShellMegaPack, but we do not want any 3rd party software so I was hoping there was an indepth coding that would achieve this.
0
 
daveamourCommented:
That link is using Windows API calls yep so maybe that is the way to go.
0
 
Andrew BassAuthor Commented:
When inserting the code into my project I ended up getting an unresponsive form window, you dont happen to know how to insert that a different way then I had just copying and pasting after adding the appropriate resources
0
 
daveamourCommented:
I tried it in .net 3.5 and it works a bit but doesn't dissapear.
Looking at that code, it is clearly written in .net 1.0 or 1.1 so maybe you need a more up to date article.
What version of .net/Visual Studio are you using?
0
 
Andrew BassAuthor Commented:
Using 3.5 and Visual Studio 2008.  Was unable to locate a more up to date article and was unable to convert
0
 
daveamourCommented:
Ok I'll have a look around for a mroe uptodate one.
0
 
Andrew BassAuthor Commented:
thanks for sticking with me on this
0
 
Andrew BassAuthor Commented:
Unfortunately not, brings me back to the 3rd party issue.  Lol this idealistic simple sounding task has become quite the stonewall
0
 
daveamourCommented:
Ok sorry forgot about that - will keep looking.
0
 
Bob LearnedCommented:
1) That CodeProject article talks about a class that can interact with the existing Windows task bar, not creating a new one.

2) I believe that this is the CodeProject article that you are looking for:

C# does Shell, Part 3
http://www.codeproject.com/KB/shell/csdoesshell3.aspx
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

  • 9
  • 8
Tackle projects and never again get stuck behind a technical roadblock.
Join Now