I'm using a ContextMenuStrip to show some options to the user when they mouse over cells in a table, by calling its Show(Control, int, int) method from within a the table's MouseMove event, passing the table in as the Control parameter.
If the app isn't active, everything works as intended; but if the app is active, then the MouseMove e...
I feel quite limited by the default ContextMenuStrip, as it only can contain buttons, and no Controls.
I was wondering that for a long time, and I already tried it, using forms, but it never really worked out.
I already have I idea on how to set the whole thing up, with events and items. The only problem I have is the paint method.
When...
I have searched on here and have not found exactly what I am looking for.
I am using a ContextMenuStrip, within this there is one menu item that is a checked/unchecked item. The structure is the following:
Top Level: Settings
Middle Level: Processing
Bottom Level: Manual processing
I can not find a way to access the Bottom level item,...
I'm using a ContextMenuStrip for multiple controls and I'm trying to figure out the best way to get the control that was actually clicked on to open the Context Menu. The sender just gives the ToolStripMenuItem reference, which has an Owner property that references the ContextMenuStrip, but I cannot figure out how to tell which control ...
I am getting some erratic behavior from a ContextMenuStip:
private void lstModules_MouseMove(object sender , MouseEventArgs e)
{ mouse = e.Location; }
private void lstModules_MouseDown(object sender , MouseEventArgs e)
{
ListViewItem item = null;
if((hitTest = lstModules.HitTest(mouse)) != null)
item = hitTest.Item;
switch...
I need to know which row is right-clicked on for the contextMenuStrip in a datagridview. Winforms, c#.
...
Is there an event that fires in vb.net just before a contextMenuStrip appears when the user right clicks on a control? I need to be able to control the content of the contextMenuStrip just prior to the menu strip appearing. Basically I want to be able to change the content of the contextMenuStrip just before it appears. Is this possib...
I have a ContextMenuStrip with many items.
How to handle ouse wheel to scroll throught items?
I search the net but nothing find usefull.
Or how to get first/last displayed/visible item from contextmenu?
...
I have a ContextMenuStrip (ctMenuMassEdit) that I want to display when left-clicking a button (btnMassEdit). I want the ContextMenuStrip to be displayed above the button, i.e. position (0,-ContextMenuStrip.Height) relative to the button:
private void btnMassEdit_Click(object sender, EventArgs e)
{
ctMenuMassEdit.Show(btnMassEdit, ne...
Hello,
how to set and get the colors value to text and/or Background of an item in a context menu strip based on the value?
is this code right way?
ContextMenuStrip1.Items.Add("this is an item").BackColor = Color.FromArgb(255, 179, 179);
but I can not find out a way to get the color value!
I did this:
int i = ContextMenuStrip1.Ite...
I have a ContextMenuStrip that I am showing programmatically in response to a button being clicked. Everything works as expected, except that the Items in the menu do not respond to being moused over. Whether the mouse button is up or down, mousing over the menu has no visible effect, and releasing the mouse button does not select an I...
I have an ActiveX control (VB 6.0) that I am using in C# and its right click "e" param has
int e.x and int e.y
now I want to show the contextmenustrip for this contorl. It is showing but not at the exact location that I right click the mouse, it is some point higher that where I do the right click.
I wrote something like this to fix t...
Hi all,
I wanted to clear the items just after the ContextMenuStrip is shown. However when I was making the following calls, ContextMenuStrip didn't show properly in the first place. Any ideas?
ContextMenuStrip.Show()
ContextMenuStrip.Items.Clear();
Thanks,
...
Quick Steps to reproduce problem:
Create a new class, "TestUserControl", that derives from UserControl. Add a ContextMenuStrip from the VS ToolBox. Add the following property on the class...
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public ContextMenuStrip OwnContextMenuStrip
{
...
I have a ContextMenuStrip attached to a list view, and it's working great, but what I'm interested in knowing is how I can have it show up only when one or more items are selected in the listview.
Thanks!
...
I have a ContextMenuStrip assigned to a NotifyIcon and this works with the right click fine.
How may I wire up the mouse-click event to tell the NotifyIcon to show its ContextMenuStrip?
private void taskbarIcon_MouseClick(object sender, MouseEventArgs e)
{
switch (e.Button)
{
case MouseButtons.Left:
// What ...
I have a contextmenuStrip associated with a tree view.
Now for instance, i have four nodes in the tree structure and Node 4 is selected.
Behavior:
ContextMenuStrip - When u right click on the Node 2 , that node is selected and as soon as the context menu strip opens up, the focus goes back to Node 4.
With old component 'Context Menu'...
Hi,
When i render contextmenustrip, it gets render at the top left of my PC Screen. I have a listview, which contains 5-6 items and on right click of each item, the context Menu strip gets displayed.Also i need to change the color of context menu strip including backgrounds and text as well.
Thanks in advance!
...
Please See this:
http://img405.imageshack.us/img405/2008/rolloversummaryschedule.jpg
How can i create a window that holds Patient data in it? The 2 records that you see is in List View. I would then using ContextMenuStrip for text "View Details". When View Details is clicked i need to show the context. For web development this could be...
Hey,
I am coding a program which uses a global hotkey registered via ManagedWinapi.Hotkey.
This works fine. What I want to do is to show a contextmenustrip when this hotkey is pressed.
I want this to work when the main form of my program is not focused. This works right, with the problem that an empty window appears in the taskbar each...