contextmenu

Add Items to Windows Context Menu

Hi! I am writing an app and I was wondering how could you add something to the windows context-menu (when you right click on the windows exspor) like in 7Zip or winRAR to preform certain actions i.e. encrypt file\zip file; in vb.net, or perhaps is there a way in the windows installer template? I don't really want to use the shell method...

Context Menu not getting minimised

I have a page that is being hosted in a window. The page has an ultragrid in which there is a context menu. When the context menu is opened, and the window is minimised using windows+m, the window gets minimized but the context menu is not getting minimized. The window gets minimised to the taskbar but the context menu is still visible....

WPF - Do not show Context menu when ListView is empty

I have a ContextMenu bind to ListView, but I don't want to be the menu shown when the ListView is empty. I tried direct binding to element, tried binding using FindAncestor, but none of these works and the menu is always shown when I click right mouse button in the ListView. What would be the correct binding? <Grid> <ListView x:Name="lo...

WPF Submenu styling

I have a ContextMenu style and a MenuItem style, both of which are working properly on the top menu. The problem is if I add a submenu to a menu item, then the submenu is not being styled properly. It looks like you can only style the menuitem at this point, and not the actual sub menu so you can't replace the IsMouseOver styling (it j...

How to retrieve JSON via ASP.Net context.Request

var OrderInfo = { "ProductID": "ProductIDValue", "ProductName": "ProductName", "Quantity": 1, "Amount": 9999, "SLQuantity": 9999, "SLDate": "08/03/2010" }; var DTO = { 'OrderInfo': OrderInfo...

Opening a context menu without registering the view

How can I open a context menu for a view without registering it using registerForContextMenu()? My activity overrides onTouchEvent to detect motion, and if I use registerForContextMenu() it stops working. I'm detecting a long press, so I'd like to forward that request to a method that would build the menu for me, but don't know if it ca...

Use right click context menu paste in silverlight (4.0) from clipboard to active control

I have a grid with a bunch of textboxes for input. I wanted to implement Paste functionality. To do this for one textbox I wrapping it in a grid, adding a contextmenu with Paste item, and in the click event I set that textbox's text to the Clipboard.GetText(). But then I thought perhaps the context menu should be in the larger grid co...

Context Menu Customization

I'm trying to return a list of addresses obtained through: addressList = geocoder.getFromLocationName(sSearchPath,5); I have a contextmenu displaying the results, however the text it too large and does not wrap content, it just travels off the window. How can I make the context window appear more like the Google maps navigation conte...

Get selected files from windows explorer to use in app from context menu C#

I really need to get the full path from selected files in windows explorer to add them into an listbox. I dont want to use drag and drop and i dont want to use treeview also. ...

How do I make somthing visible when the mouse moves across a button?

How do I show a PropertyGrid instead of a context menu, so when the user clicks somewhere else, it will hide (like a context menu)? ...

Get the point of click on a control

I am using an old ActiveX control in my C# Win App. it has a MouseUp event that its eventArgs is passing the X and Y of the point that we have clicked but for my scenario I am using its ItemClick event and its eventArgs does not have the info about X and Y. but I need to know them to show my pop-up... so is there a way I can find out wha...

addEventListener('mousedown', ...) vs element.onmousedown

Right let’s get this out the way first. Yes, I want to hide the context menu. No, I’m not trying to prevent someone lifting content off my page. Its intended use is input for an in-browser game and it will be limited to a specific area on the webpage. Moving from the ideological to the technical... var mouse_input = function (evt) { ...

Silverlight 4 and the ContextMenu control

I have the following piece of XAML code: <controlsInputToolkit:ContextMenuService.ContextMenu> <controlsInputToolkit:ContextMenu Height="75" Width="200" IsOpen="False" Visibi...

How to add sub menus to the ContextMenu control in Silverlight 4?

I have the following piece of XAML code: <controlsInputToolkit:ContextMenuService.ContextMenu> <controlsInputToolkit:ContextMenu Height="75" Width="200" IsOpen="False" Visibi...

Reorder IE Context Menu

Hi, We have developed an Internet Explorer Addon using BHO and C#. We added a few context menu actions (for the IE that are using the addon) as well. We've used the registery entries under the HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\ to add the context menu entries. Is there a way to order the enntries? Or add a s...

How to change( and later restore) default context menu in textbox

Hi I wanted to change default textbox context menu, so I created my own menu and them I assigned it like that texbox.ContextMenu = myContextMenu However I don't know how to restore default textbox menu (in a runtime). I need myContextMenu to show only when I click textbox with right mouse button (while holding Control button). In othe...

Is it possible to hide/remove arbitrary context menu items in Eclipse (3.6)

My question can be split into three: Is it possible to hide/remove arbitrary context menu items in Eclipse (3.6) by ... standard UI? some existing plug-in? custom plug-in? I failed to find ways to do this by methods 1 and 2. If the only option is creating custom plug-in, could anyone push me towards the right direction where to star...

PyQt4 tray icon application context menu items don't work.

Hello! I've got a simple tray icon application, but "About" context menu item doesn't work at all. I'm definitly mising something simple, but important here. The question is what should i fix to see "About" menu item working? import sys from PyQt4 import QtCore from PyQt4 import QtGui class SystemTrayIcon(QtGui.QSystemTrayIcon): ...

Is there a tutorial, code project, or example of using MEF to extend the Vs2010 solution explorer context menus?

I have an existing legacy style IDTExtensibility2, IDTCommandTarget Extension that I would like to remake using MEF for vs2010, but I can't find any resources concerning VS2010 MEF and context menu changes. If it happened to be deployable via .vsix all the better. Are there resources out there specific to MEF based context menu extensio...

vb.net and ContextMenuStrip ?

I'm using winforms and vb.net. When I right click on a textbox I get the copy/paste/etc popup menu. This is ok. But How can I add something to this menu, and where/how would I intercept the event when one would click on the Item I add to it? ...