473,513 Members | 2,263 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ContextMenu

Gday,

Ive added a contextmenu to my form and added some text to the drop down
list.
I have a treeview control where I want to use this context menu function.

This is as far as I have got. Ive added some text to the contextmenu object
but where do I go from there? When i right click on a node in the treeview
control at runtime there is no pop menu. So how do I get this thing to popup
and how do i get a click event going for whatever selection Ive made?

Thanks,
Grant

Nov 16 '05 #1
2 2331
You should attach context menu to treeview, not the form.

HTH
Alex

"Grant" <gp*****@hotmail.com> wrote in message
news:OC**************@TK2MSFTNGP09.phx.gbl...
Gday,

Ive added a contextmenu to my form and added some text to the drop down
list.
I have a treeview control where I want to use this context menu function.

This is as far as I have got. Ive added some text to the contextmenu object but where do I go from there? When i right click on a node in the treeview
control at runtime there is no pop menu. So how do I get this thing to popup and how do i get a click event going for whatever selection Ive made?

Thanks,
Grant

Nov 16 '05 #2
Jaw
hi,
how can i know where the control object occurring the pop-up menu in smartdev?
I know that context menu in win 32 have a member " Source Control" , but no such
a member in smartdev, how can I got it ?

"AlexS" wrote:
You should attach context menu to treeview, not the form.

HTH
Alex

"Grant" <gp*****@hotmail.com> wrote in message
news:OC**************@TK2MSFTNGP09.phx.gbl...
Gday,

Ive added a contextmenu to my form and added some text to the drop down
list.
I have a treeview control where I want to use this context menu function.

This is as far as I have got. Ive added some text to the contextmenu

object
but where do I go from there? When i right click on a node in the treeview
control at runtime there is no pop menu. So how do I get this thing to

popup
and how do i get a click event going for whatever selection Ive made?

Thanks,
Grant


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1648
by: MD | last post by:
I have a ContextMenu that is assigned to 3 RichTextBox's (i.e., if you right-click on any of the 3 RichTextBox's, you get the same ContextMenu). My ContextMenu has 2 items, each of which have their...
2
2909
by: Derrick | last post by:
I've been working on an application which has a NotifyIcon (system tray icon), and a corresponding ContextMenu. I want to be able to update this menu dynamically. However, when I make changes to...
2
2111
by: Zieben | last post by:
Hello! I have such problem! I have my UserControl. I override property ContextMenu for this Control as ..... new ContextMenu ContextMenu{ set {_contextMenu = value;}
0
1343
by: cemino | last post by:
Hi, I got a problem with ContextMenu. I'm using a hot-key (like Ctrl-B) to show contextMenu in my program. Things is like below: contextMenu.Show(Form1, New...
10
21252
by: tmaster | last post by:
When I try to dynamically add a second sub menu item to this ContextMenu item, I get an error 'Specified argument was out of the range of valid values'. Private Sub mnuTopics_Show_Select(ByVal...
7
1366
by: TryingLikeHeck | last post by:
I have a usercontrol on which I've generated a context menu in designer. The properties of the control lists for ContextMenu (none) The menu shows up in the designer window and I can edit it To...
11
2641
by: Graham Charles | last post by:
I'm writing a control inheriting from ComboBox, and I'd like to add an entry to the ContextMenu for that combo box. I have no problem if I create an entirely new ContextMenu from scratch, but I'd...
3
2493
by: Libby Sharf | last post by:
Hello, I have several ContextMenus and I want to connect them to the GridControl's ContextMenu property depending on the row that was right clicked. Is there an event that is raised just before...
0
1542
by: Steve Richter | last post by:
I cant get a contextmenu to popup in the context of a datagridview. It pops up in the ListBox, and in the form itself. But not the DataGridView. How could that be? here is my code: using...
3
347
by: asharda | last post by:
Hi, I am trying to create a context menu in my application. The context menu takes menu otems from an XML file. In XAML the code is <Grid.ContextMenu> <ContextMenu Name="cm" StaysOpen="true"...
0
7265
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7388
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7547
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5693
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5098
isladogs
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...
0
4751
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...
0
3230
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1607
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 ...
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.