Windows Desktop Context Menu - c#

Hi I am currently creating a C# windows program and I am trying to add a right-click menu to the desktop everything is being added to the registry correctly but when I right click the desktop it wont display all menu items on some, its like it has a limit on how many items are aloud is their a way to overcome this? BTW I am adding it all through RegistryKey.
here are some images of the problem...
as you can see it shows three Items but their should be more...
this one shows missing items in the third item
this is a pic of the registry items
any help on this matter will be appreciated, also I have tried to use sharpshell but have failed to get that working, I have limited knowledge of C# but I am learning and have not worked with C++.

Related

Memory warning in Xamarin iOS while loading multiple images in UIView

I'm working on Xamarin iOS project. I have to load the images depends on help menu choice. I have a view controller with UIImageView and every time I'm adding the list of images I have to show a list and showing the Images. It works fine for two or three menu options (times). After few clicks app is crashing due to memory. I tried to clear the List on Close button click even though it is crashing. Can you please help me to resolve this issue.
Thanks in advance
You need to be careful with adding "heavy" resources like images. Rule of thumb:
Keep only in memory what you really need, means: clean up everything that's not in the view port. Use UICollectionViewor UITableView, they support dequeueuing reusable cells (see Xamarin docs for more information).
Clean up everything you don't need anymore. Make sure it's cleaned up for sure.
For some more information, see here: https://thomasbandt.com/xamarinios-memory-pitfalls

How can I add an item to the right click menu on the desktop

I have an application that runs in the background and changes the user's desktop background at set intervals. I would like to make it possible for the user to right click the desktop background and have the option to download the photo or advance to the next background, in addition to the normal windows right click options. Is there any way to do this in C#?
The target OS is Windows 8.1, but if it could work across several versions of Windows, that would be great.
Thanks to kennyzx for suggesting Sharp Shell context menu. It's a relatively easy library to understand for someone who is not use to using some of the deeper C# concepts yet.
You should do this in a setup and deployment project. This article shows the steps to add a menu option in the desktop context menu
The easiest way is to edit registry HKEY_CLASSES_ROOT\DesktopBackground\shell as described here..
http://www.howtogeek.com/107965/how-to-add-any-application-shortcut-to-windows-explorers-context-menu/

How to include windows right click menu in my application?

I have a desktop app which after taking input from the user displays a list of files and folder(using a ListBox).
I want that when the user right clicks on any item in the ListBox, the right click menu of windows explorer should display.
I know I will have to use P/Invoke for this, but I am unable to find any relevant information such as which dll I have to use or which function I have to call.
Can anybody help me with that?
So this question is very old but has no accepted answer. I dont think Visionstar understood the issue OP is having.
My understanding is that you have an application running, and you would like to add an option in the WINDOWS EXPLORER's right-click menu. Not in your own application's context menu.
I do not think you can achieve this within your own application, however, what you can do is add an item in the Windows explorer's context menu (nothing to do with your application, you can just do that in windows; see link below) that you can setup to call a little script you would make (literally a little batch file... but could be a .net app too). That little script can take care of warning you main application. By creating a text file, or json file in a hot folder, or some other mechanism you would have to come up with.
Adding an item in the windows' contextual menu:
How add context menu item to Windows Explorer for folders
If you need to deploy this to other PCs, you can make a add_menu.reg file to make it simpler. I'll let you Google that one, but I think it's as simpe as a right-click -> export key in your regedit.
You will need to code it yourself, there is no embedded way simply add a OS-Contextmenu to it,because you have programmed the listbox, so you have to append some contextmenu to the listitem-rightclicks
Here are examples/guidance for adding a context menu:
http://msdn.microsoft.com/en-us/library/aa984254%28v=vs.71%29.aspx
http://social.msdn.microsoft.com/Forums/windows/en-US/790cd8be-0ba8-4f10-95a8-c88f1023d6e7/how-can-i-create-a-rightclick-menu-i-c?forum=winforms

Simpler Breadcrumb Bar Sample

my question is very simple. I am building an app(WPF CSharp) and I need user to give me paths that my app is going to use. Previously I added textboxes to show pathways, however, later I decided that it would be cool to use a Win 7 style Explorer navigation bar, which is a Breadcrumb bar. I found a great open source component for it here (http://www.codeproject.com/KB/tree/WPFBreadcrumbBar.aspx) however, I could not use it in my app. I added references both to Toolbox section and Project>References section. I can also add the control to my WPF window from Toolbox, yet I could not figure out how to fill it, how to change and show items in it etc. With respect to component author, I think article on Codeproject is not very 'understandable'(XAML? I want C# code please) and also PopulateItems event, for instance, did not work for me. So, if someone give me a basic example on how to add items to this bar easily, change items, or shortly, shows me how to make it work, I will appreciate for that,
Thanks.
I Guess it depends on how you want to present it. If you want to use a tab control to simulate the functionality you could go this route:
http://www.wpfblogger.com/post/BreadCrumb-TabControl-Style-for-WPF-40.aspx

C#: Clean recently used files from jumplists

Is there a way to clean the some items form the Windows Jump-List using C#?
(An applications Jump-List appears when you click right on the applications icon in the Windows 7 Taskbar.)
I would like to clean the menu items representing the recently closed files but I'd like to keep the other menu items.
For example I'd like to clean the items of Google Chromes recently closed websites under the headline "Recently closed". I'd also like to keep the application specific menu items under the headline "Tasks".
All the menu information is stored in some binary files in the directory "%LOCALAPPDATA%\Microsoft\Windows\Recent\CustomDestinations\".
It is possible to delete these files, but if I do so I not only delete the list of recently used files but I also delete the application specific menu items, too.
I'm looking for a way to find and clean the menu items representing the most recently used files for any applicatins Jump-List using C# code. Do you have any ideas?
Thanks for your help!
Maybe it is possible to user the Winodws API Code Pack for C#?
http://code.msdn.microsoft.com/WindowsAPICodePack

Categories