|
by: VR |
last post by:
I have a form with a list view control, a button control
and a main menu with menuDelete item. Any time I am
handling a button click event or menuDelete click event I
call DeleteItem() function which removes the selected item
from the list.
If I right-click on my list, I clone menuDelete item and
display a pop-up menu. So, if user selects Delete item in
the menu, I go through the same logic and remove the
selected item.
|
by: Brian Martel |
last post by:
I am trying to create a dynamic flyout submenu off of a contextmenu.
I can right click and get the base contextmenu ok.
On the Popup event I add MenuItem's to the collection of one of the items so
it has a flyout submenu when selected.
If I try and add more than 1 item to the submenu it only shows up the first
time.
This same code works fine if it is part of a MainMenu but not with a
ContextMenu.
Has anyone seen this before? Have you...
|
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;}
|
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
Point(Cursor.Position.X,Cursor.Position.Y));
But it looks that the contextMenu can not get focus in this way,
because I can not use the Up/Down keys on keyboard to do menu
selections with the contextMenu.
|
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 assign my menu to the property in New I do
ContextMenu = RePopupMenu
To show it, on right mouse down I do
ContextMenu.Show(Me, New Drawing.Point(e.X, e.Y))
|
|
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 prefer just to
tack my MenuItem on to the existing, built-in ContextMenu (Cut, Copy,
Paste, etc.):
_RemoveMRUItemMenu = New MenuItem
_RemoveMRUItemMenu.Text = "&Remove Item"
_RemoveMRUItemMenu.Enabled = False
|
by: Ahmad Jalil Qarshi |
last post by:
Hi!
I have a NotifyIcon and a ContextMenu attached to it.
What I want is to show the ContextMenu when the mouse pointer is over the
NotifyIcon and hide the contextMenu when the Mouse pointer moves away from
the NotifyIcon.
To show it when the mouse pointer is over the NotifyIcon I have written
following code in the OnMouseMove event.
|
by: wandii |
last post by:
Hi,
I am trying to show the shortcut menu on a richtextbox control by
adding the contextmenu component onto the form. The richtextbox
property is assigned to the contextmenu. I created my shorcuts, copy,
paste, etc. However, on the form I have a datagrid
which is also assigned to the same contextmenu and contextmenupopup
event as follows:
....
If ContextMenu1.SourceControl Is richtextbox1Then
' Add MenuItems to display for the TextBox.
|
by: snehal12345 |
last post by:
I have created 1 contextmenu for a listbox in C#.net 3.0 . For that context menu I have written one event handler for mouseup event . But when i click on contextmenu item that event is not captured. I have done following:
{ /*in constructor of main window */
listbox1.ContextMenu.Items.Add("save");
listbox1.ContextMenu.MouseUp += new System.Window.Input.MouseButtonEventHandler(Contex tMenu_MouseUp);
....
}
ContextMenu_MouseUp(object sender,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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 we have to send another system
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|