When you right-click the Skype icon in the taskbar while Skype is running, it has a little group in the "CloseWindow" popup thing titled Tasks, which contains options to sign out or quit Skype.
How would I go about doing this in C#? Thanks.
You need to use Microsofts Windows API Code Pack. For an example on the exact way to implement it in your case, this tutorial will guide you through all the steps!
The tutorial will show you how to do make the same thing Skype and windows media player use very quickly.
Hope this helps!
I answered a similar question here:
This feature is called a JumpList and is for Windows 7. It is part of the Microsoft API. How to use this with C# has been documented thoroughly here and here.
In order to be able to deal with Jumplist classes in Windows Forms, you'd have to include these DLLs (Microsoft.WindowsAPICodePack.dll and Microsoft.WindowsAPICodePack.Shell.dll) in your project. You can get them from this CodeProject project or you can download the Open source library from WindowsAPICodePack which includes the source code that can be used to access Windows 7 and Windows Vista features. You will need to add two usings at the top of your code:
using Microsoft.WindowsAPICodePack.Taskbar;
using Microsoft.WindowsAPICodePack.Shell;
Any Jumplist consists of categories and each category has its own Jumptasks. There are two types of Jumptasks supported till now by WindowsAPICodePack; the JumplistLink and JumplistSeperator. A Jumptask represents an action to be performed by the user like openning a new instance of the application or launching another program. These Jumptasks are grouped in categories called JumplistCustomCategories.
Related
I want to do some things, which I feel are very simple, but I cannot do. I have looked at numerous websites and StackOverflow questions. One question has helped me a bit by pointing me in the right direction, but I feel I need more than just that.
Here is what I want to do (basically):
I would like to make a UWP app that can be managed by another app.
By "managed" I mean:
Should be able to install the app.
Should be able to uninstall the app.
Should be able to check for updates and update the app.
It should also be able to launch the app.
Optional requirements:
While launching the app, I would like to have it set the page of a panel to a certain page. Also fine with it clicking on the navbar and change the panel's page
This would be an example of my app would be like (the one with the panel/nav): Question
I would also like an installer (something like a .exe file or .msi file) for the installing app. Not the .appinstaller that visual studio 19 produces. Something like Inno Setup produces.
Is any of this possible?
If so, please give me some sample code/instructions/links. I would be very thankful for any advice/points in the right direction as well!
If not, please suggest what other language/framework I should use to accomplish these tasks (Is "tasks" the right word?). I don't mind learning anything and have unlimited time. Don't care about the learning curve either. (If I need C++, I will do it. ONLY IF I NEED IT!!!)
Thanks all!
P.S. I know about WPF or WinForms. I don't want to use them because of their age.
As the Rob Caplan said, PackManager class doesn’t support uwp app, it is suitable for desktop app. So maybe you need to create a wpf app and use Desktop bridge to package it into uwp app so that you could use this api. In addition, you could find the sample here about installing appx package, its parent directory Windows-classic-samples/Samples/ also contains other samples you need, such as PackageManagerRemovePackage, etc, please check it.
We have a c# application that requires a few steps be completed before every launch. I wrote a c# app to automate these steps.
Can anyone help me figure out how I can [EDIT: configure a JumpList] for my app?
I have included a screen capture to hopefully get my point across as I'm not sure how to explain it any better.
For the native interfaces, see Taskbar Extensions (Windows). Specifically, I think you're looking for the ICustomDestinationList::AddUserTasks method.
If you're using .Net 4+, you can now do a lot of this stuff with built-in classes in the System.Windows.Shell namespace, rather than adding the Windows API Code Pack as suggested by Coding Gorilla. See for example System.Windows.Shell namespace
Those are called "Jump Lists", have a look at the Windows API Code Pack here. I can't tell you exactly how to implement them, because it's very dependent on your application code. But this should give you somewhere to start.
Just a quick, hopefully very easy question. I wish to make a toolbar to place on the task bar (a common example of this is the language bar), the toolbar itself just has to display time until next bus.
My question comes in how I can do this, I can seem to find no information on how to create a taskbar toolbar. I'll be writing in C# and will be using windows 7. Any help would be greatly appreciated.
To interop with taskbars you need to use native windows api. You can check msdn and read about windows api and use PInvoke to call correct windows methods or you can use library written in c# to wrap that common windows api. You can find such library at http://archive.msdn.microsoft.com/WindowsAPICodePack.
I would like to create a basic webdesktop in silverlight 4.
How can I do a windows manager ?
I want to move, resize, minimized, maximized each windows like http://mesh.com...
Does it exist something to create easily a windows manager ?
Do I have to create everything from scratch ?
How ?
Creating a desktop-like environment inside of Silverlight is definitely possible (there are examples out there) but it is not something that is included in the framework. You will need to build each of these features yourself or use a third party library.
You might want to look at projects such as the C64 emulator
Are you looking to do something similar to this Vectorlight sample?
Also, take a look at this blog post about simulating a windows desktop in Silverlight.
The new Windows 7 taskbar features, like jump lists, previews, etc. are really cool, and I want to allow my C# applications to use them. I have two questions:
First of all, how can I use these functions (in general)? I found two articles by Microsoft about this, but I'm not really sure what to do. Could you provide links to a library, as well as some sample code?
Next, let's say that I figure out how to use these Taskbar functions. My question is, is there some built-in way of checking whether the OS is Windows 7, and thus enabling the taskbar functions? If I didn't have this logic in my app, would it have problems if it was run on a non-Win7 machine?
Thanks!
In the first article you link to there is a sample library that you can download that makes use of the new Windows 7 features.
This article shows how to check the version of Windows your application is running on.
As always, if you call an API that isn't in existence, then yes, your app will experience some turbulence. Remember, it's (almost) always better to check for a condition and act accordingly once (as in application startup) than to try something over and over in code and catch exceptions.
Windows API Code Pack for .NET Framework is your one stop shop for a ton of .NET API for Windows programming, including Taskbar. This library gives you a complete API set to work with Windows 7 Taskbar and then some. It also includes samples for WPF, and Winform.
Another good source for Windows 7 content is the Windows Team Blog