Hi,
I am using treeview as my menu.
my menu is like the following
+ Users & Groups
- Users
-Groups
+ Departmenuts
- Engineering
- Business
Currently, I am using mouse down event and trigger my mouse right click.
so when my mouse cursor is in the treeview, and I right click my mouse, my
context menu1 will show up.
but, what I want to do is like the following
When i right click the - Users - pop up context menu1
When I right click the - Groups - pop up context menu2
When I right click the - Engineering - pop up context menu3
When I right click the - Business - pop up context menu4
When I right click the + Users & Groups, nothing will pop up
When I right click the + Departments, nothing will pop up
how to do that ? pls guide me. 2 1299
Use the GetNodeAt() method of the treeview combined with the pointer
position.
Please don't crosspost to irrelevant groups - this belongs in
microsoft.public.dotnet.framework.windowsforms
--
____________________
Klaus H. Probst, MVP http://www.vbbox.com/
" A-PK" <pi********@hotmail.com> wrote in message
news:ua**************@tk2msftngp13.phx.gbl... Hi,
I am using treeview as my menu. my menu is like the following
+ Users & Groups - Users -Groups + Departmenuts - Engineering - Business
Currently, I am using mouse down event and trigger my mouse right click. so when my mouse cursor is in the treeview, and I right click my mouse, my context menu1 will show up.
but, what I want to do is like the following
When i right click the - Users - pop up context menu1 When I right click the - Groups - pop up context menu2 When I right click the - Engineering - pop up context menu3 When I right click the - Business - pop up context menu4
When I right click the + Users & Groups, nothing will pop up When I right click the + Departments, nothing will pop up
how to do that ? pls guide me.
Hi,
Use contextmenu.show in the mousedown event.
Ken
-------------------
" A-PK" <pi********@hotmail.com> wrote in message
news:ua**************@tk2msftngp13.phx.gbl... Hi,
I am using treeview as my menu. my menu is like the following
+ Users & Groups - Users -Groups + Departmenuts - Engineering - Business
Currently, I am using mouse down event and trigger my mouse right click. so when my mouse cursor is in the treeview, and I right click my mouse, my context menu1 will show up.
but, what I want to do is like the following
When i right click the - Users - pop up context menu1 When I right click the - Groups - pop up context menu2 When I right click the - Engineering - pop up context menu3 When I right click the - Business - pop up context menu4
When I right click the + Users & Groups, nothing will pop up When I right click the + Departments, nothing will pop up
how to do that ? pls guide me. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Sonia Igla |
last post by:
Hi. I need to perform DBLCLK on TreeView Node.
I try the following:
private static extern int SendMessage(IntPtr hWnd, uint msg, UInt32 wParam,
UInt32 lParam);
private const UInt32...
|
by: Karim El Jed |
last post by:
Hi,
I'm trying to expand a special Node of my TreeView from Codebehind.
I have a TreeView on a page for navigating to another site. On the other
tsite here is the same TreeView more precisely a...
|
by: DJG |
last post by:
I need some help with a TreeView control in VB.Net
I've got a datatable with about 8000 rows. 500 are 'folders', and the
other 7500 rows are 'jobs'. It's a logical representation of some data,...
|
by: Jan Wrage |
last post by:
Hi!
I would like to implement a treeview in my existing application. It should
show my entire Active-Directory structure, i.e. all Groups, Containers and
OUs.
Could somebody help me with...
|
by: Mr.D |
last post by:
How do I save/load the contents of a Treeview to a file?
I have found several good examples written i VB6, but not a single one for
VB.NET.
Please help.
----
Tim
| |
by: christof |
last post by:
I've got a really easy problem, please help me:
There are two pages in one I'm creating a TreeView like that:
TreeView dbTree = new TreeView();
TreeNode dbTreeRoot = new TreeNode("Root");...
|
by: p3t3r |
last post by:
I have a treeview sourced from a SiteMap. I want to use 2 different CSS
styles for the root level nodes. The topmost root node should not have a top
border, all the other root nodes should have a...
|
by: Matt MacDonald |
last post by:
Hi All,
I have a form that displays hierarchical categories in a treeview. Ok so
far so good. What I was to do is have users be able to select a node in the
treeview as part of filling out the...
|
by: Joe Cool |
last post by:
Let's say I have a Treeview control on a form. Each leaf node in the
Treeview has a ContextMenuStrip, each with one ToolStripMenuItem, and
all ToolStripMenuItems Click event is handled by a comment...
|
by: makennedy |
last post by:
Hi Experts,
Please help, I am a newbie to ASP.NET 2.0 may be I am doing something wrong or there may be a bug somewhere.
Basically I have a TreeView Control which I have created...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |