o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

context menus - treeview -

when i associate a contextmenu with a treeview all works fine, except if i right click on a node, it highlights it, and brings up the context menu, but the actual selectednode property of the treeview does not change... how would I go about selecting the node they click on

i tried doing
TreeView.SelectedNode = TreeView.GetNodeAt(Me.MousePosition)
and
TreeView.SelectedNode = TreeView.GetNodeAt(TreeView.MousePosition)

but they both return "Nothing"

 

Change Color Of Context Menu -
I know how to change the back color of menus that appear in the menu bar (thanks to this post) but how to change the back color of context menus? For e.g. in a web browser app, a TreeView is being used to display the history. When a node is right-clicked in the TreeView, a context m


context menus - treeview -
when i associate a contextmenu with a treeview all works fine, except if i right click on a node, it highlights it, and brings up the context menu, but the actual selectednode property of the treeview does not change... how would I go about selecting the node they click on i tried d


Context menu in tree view control -
Quicky.. is there a 'standard' way of adding a context menu to a treeview controls nodes, not the control as a whole but that can change as different nodes are selected? i can get it working on some events, and it works fine if the user selects a node *then* right clicks, it does


Context menus and registry entries -
Hi, How can I create custom context menu items in win2k? I would like to have an extra context menu "Register" in my context menus when I right click a dll or ocx file. How do I do this?


[2008] COntext Menu - Treeview -
Ok, finally starting to learn VB.net. (just playing around) I have a treeview with a few nodes I have a context menu that is set to the treeview How do you make the context menu only appear if a certain node(s) is right clicked?? (there are no KEYS for the nodes!!) So I


treeview context menu -
Hello.. I have a treeview that has an associated context menu.. When i right click on the treeview, the menu pops up.. correct!! however, if i right click on an element in the treeview that is currently not selected, it gets highlighted but the treeview still indicates that the .select


[2005] How to temporarily focus TreeNode on right click -
In the Windows Explorer TreeView, when you right click on a node, a context menu pops up. For the time that the context menu is visible, the node remains highlighted/focused until the context menu is either canceled or an item is selected, at which point, the focus jumps back to the p


Context menu in treeview -
Hi ! I'd like to know if there is a way to : when im over a node in a treeview, to have like a context menu,,but an object that i cant select anything. i'd only like to write a small description of this node besides this node. i dont want to use popupmenu because the user have the po


Right-Click "context" menus -
Well, I'm having problems getting "context" menues in my program. (I think thats what they're called....those menus that appear when you right-click something...) Well, I remember doing it a few years back, but I forgot. Anyone know the code?


Need some design advice -
Here's my situation...I have a form that has about 20 different context menus. There is a reason for this. what i've done is take all 20 of those and create a user component that simply holds them...I made all of the context menus Public. Inside the code, I have created public eve


Adding menu to a textbox context menu -
Is this possible? To add menus to the default context menu of a textbox when we right click it? I could create a new menu from scratch that could replace it but if possible I would like to just use it and add a few more menus.


rmb selecting with treeview -
In the treeview in explorer when i right click it selects the item and then brings up the context menu. In my treeview i can only select things with my left mouse button... how do i change this?? thanx


Generating Context Menus at run time -
Hello all, I am able generate a context menu at run time. But HOW TO get the events of this context menu? i.e click event on which i could further build my project. thanx


Alternate to Context Menu -
Anybody have some quick simple solution for using a form in place of a context menu. I have subclassed a TreeView control to be able to use the PopupMenu command, but I want to be able to allow actual text input in the 'context menu'.


My MS Excel context menus have been disabled somehow -
hey yers. some how (i dont know how) the context menus (right click ones) have been disabled when i rightclick the tabs to change sheets (should bring up insert / rename / copy etc function menu) and when i right click a cell in general. now, this is not to do with a specific wor


icons in context menu -
i have seen the code to get icons in the regular menus, but does anyone know who u can get them in the context menu?? more spcificly a context menu from a tray icon


Adding to Outlook's Context Menu -
I am trying to add a menu entry to Outlook's context menu. When the user right-clicks on an e-mail in the inbox, I need my menu item to be vissible in the popup menu. I have been able to do this with Word, Excel, Powerpoint, Internet Explorer, Windows Explorer and various other prog


Binding Dll's into Windows -
Is it possible to bind dll's into Windows (like winzip 7/8 in the context menus). I know how to setup context menu's, but i need to be able to proccess what been right clicked on to determine what get said in the context menu! Any information/pointers appreciated


Context Menus -
Is it possible that I can have a menu that I can change captions from executing time? Ie, when someone clicks on one item, the menu relates to that without having to have tons of different menus? Thanks


Add item to all context menus -
Does anyone know how to add a context menu item to all extensions instead of just to a single one like shown in another article here? Thanks, James


Context Menu Icons -
Hello. Is there any package or something that comes with some of the microsoft icons that are in the context menus. Like the Scissors for Cut, or the symbol for 'bring to front'. Any ideas how I could get those? John


How to Determine Direction of Context Menu Before it is shown -
Context menus by default will usually show below the current mouse position if there is enough screen space else they will show above the current mouse position if there is available space above it. Is there a way i can determine which way the context menu will display before i show th


Adding options to context-menus -
Does anybody know how to add options to the context menu of an specific EXE file?


[2008] Easier Application Menus -
Does anyone know of, or have a tool or way, to easlier create and maintain application menus. Perhaps something like a generic application menu framework? The reason I'm asking is because I'm beginning the development of a large enterprise type application that'll have a number of


Listview / Context menu Q. -
Good Morning Happy Christmas + New Year Good will to all men (and women) I have a listview with x number of items in the 'details' style. I also have 2 context menus - neither associated with the listview at design time. I want to associate one of the context menus at runti


menupopup problem -
i created a treeview and everytime user right click on any treeview items , i create a popup menu , but: when i right click on one item and my menu appears,i can not right click on other treeview item , i have to choose one of menus or click on other position on the screen and close


[2005] Context Menu - Left Click -
Context Menus are displayed when the user right clicks cna i make it so it it displayed when a control is left-clicked?


How to invoke context menu of Winzip in listview of my application -
I d like to add winzip context menu (or context menus of any application which add context menu when you right click on a file in window explorer) for the listview of my application when I right click on a file. Is it possible? If yes how? thanks in advance


Vb listbox cells and context menu -
Hi, everyone How can i place cells in a listbox like excell, and create context menus for every cell? thanks.


Icons in context menus -
Well, I once made an application. It used the windows explorer context menu. I was young then, and didn't know of this forum. Now, I need your help. I have my program almost ready to go, but I need to add an item to the windows explorer context menu. I need these items added:


Main menu in VB.net -
The Main and Context menus in Visual Basic.Net are great for generating menus. The problem is the menu always appears at the top left of a form. I am trying to have a form with Logo and other info on the top with the menu below this. Any ideas will be gratefully received. Thank


PUTTING ICONS INTO MENUS -
Its stupid VB doesnt allow icons in menus (excluding .Net). Is there a way to put icons into menus, not so they invert colors over mouse over, just how they are done normally. Im fed up of plain looking menus, at the same time using Third party controls that take huge amounts of cod


Context Specific Menus -
Wonder if you can help.... Ive got 4 'drop down' boxes within excel (on a sheet). They are all context specific. By this, I mean that the options in drop down 1 are set, but depending on what you choose in there will determine what is available in drop down 2, and depending on wha


Getting menus from the active window -
Hi folks! Is there a way to get all the menus and it's funcionality from the active window? I mean, doing a program in VB, and when I active another window with menus, all menus from that windows appear in my app? And when I click those menus in my app (menus that belongs to anot


Right-Click on a DataGridView cell -
I want to be able to right-click on a cell in a specific column in a DGV and have a context menu pop up. But by default, the context menu pops up when you click on a cell in any column. How can I specify it should pop up for just a certain column? Also, can I have separate context m


[2008] Menus and Toolbars appearance (PLEASE HELP!!!) -
All 3 programs shown in the picture (goole toolbar, winrar, and BitTorrent 6.1.1) have the same toolbar. QUESTION #1: How can I make my toolbars look and behave the same way? I know these are standard toolbars/toolstrips (NOT customized ones). How can I access them in Visual Stud


Getting Menu Bar Object reference -
I had created Menu Bar for my App using Menu Editor. My current task is to enumerate Menus and Sub-Menus captions present in the menu bar in a Treeview Control. I will be glad and thankful if anyone can help me solving in this task. Regards, Harish Jamb.


Add to Windows Context Menus -
Hello.. i want to know if i can add an entry to the windows context menu for when a user right clicks on ANY window.. is there any way to do this? My goal is to add an entry that the user can click on that will call a function in my running program and pass it a window handle.. any ide


How to Add menus of an MDIForm to a ChildForm -
Hi Guys, i have an MDIForm with its General menus (Open, Close, Exit, Windows cascde, etc.) and i have ChildForms. Some of these Forms also have their own menus (specially used for popup). Can you please tell me in detail how to make The MDIForm menus visible with the ChildForm menus


Better menus -
is there a way to get better menus? I have code that adds 13x13 bmps to the menus.. but I would like the menus to look more like office menus? (bigger bmps.. etc) 13x13 is too small and you cant have transparent bg on them... thanks!