473,408 Members | 1,728 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

context menu and MenuItem

I have a simple question about ContextMenu and MenuItem,

when I attach a ContextMenu to a control in the designer and I right click
during execution I can select options with arrow keys but when I use the
show Method of a ContextMenu I cannot select an option in the menu by
pressing arrow keys,

how could I implement this?

Thanks

Ilann
Nov 16 '05 #1
2 1348
Hi Ilann,

Can you post simple working sample that deonstrates the problem because I
tried this and it works in my test

--

Stoitcho Goutsev (100) [C# MVP]
"Ilann" <il***@free.fr> wrote in message
news:eb**************@TK2MSFTNGP14.phx.gbl...
I have a simple question about ContextMenu and MenuItem,

when I attach a ContextMenu to a control in the designer and I right click
during execution I can select options with arrow keys but when I use the
show Method of a ContextMenu I cannot select an option in the menu by
pressing arrow keys,

how could I implement this?

Thanks

Ilann

Nov 16 '05 #2
ok my mistake before show the contextMenu I was giving the focus to another
document,
sorry about that

Ilann
"Stoitcho Goutsev (100) [C# MVP]" <10*@100.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
Hi Ilann,

Can you post simple working sample that deonstrates the problem because I
tried this and it works in my test

--

Stoitcho Goutsev (100) [C# MVP]
"Ilann" <il***@free.fr> wrote in message
news:eb**************@TK2MSFTNGP14.phx.gbl...
I have a simple question about ContextMenu and MenuItem,

when I attach a ContextMenu to a control in the designer and I right click during execution I can select options with arrow keys but when I use the
show Method of a ContextMenu I cannot select an option in the menu by
pressing arrow keys,

how could I implement this?

Thanks

Ilann


Nov 16 '05 #3

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

Similar topics

3
by: Eddie de Bear | last post by:
Hi, A project I am working on has a requirement for dynamic menus. For the most part this works really well. The menus I'm creating a based on files and directories, so naturally the menu...
1
by: Abhi | last post by:
I've created a class "MRP123MenuItem" derived from inbuilt MenuItem class to give customized look and feel to the user. I've created context menus for different controls using mine...
8
by: Dennis C. Drumm | last post by:
Is there a way to modify the standard context menu shown when someone right clicks in a windows text box and that would work for all open windows applications? The standard context menu for...
0
by: Andrew Baker | last post by:
Have a look at the code below. It's a really simple example where I have added two controls to a form, a textbox and a combo box. Both add owner drawn context menus to the controls, but the...
4
by: ssg31415926 | last post by:
I've got a ListView which can show many different types of object. I need to display a ContextMenu whose MenuItems depend on the object type. I was planning to pre-create the ContextMenus when...
3
by: Sameh Ahmed | last post by:
Hello there Need to create a context menu in runtime, everything is ok except that I need to check if a menuitem called "whatever" already exists in the context menu. Below is the code I use that...
2
by: PJSimon | last post by:
I have a system tray icon for my application. Each time the user pastes some text into the application, I add a submenu item in the system tray's context menu. The first time I right-click the icon...
1
by: goRide | last post by:
Hi, I'm looking of a way (preferred - a ready class or dll) to customize the context menu. many application has more controls inside the context menu (like textbox, sliders, checkbox, panel...
0
by: ssg31415926 | last post by:
I have a list view which contains various object types and I need to create a context menu with menu items dependent on the object type. I can detect the object type at MouseDown. I've written...
1
by: steve | last post by:
I have a class which includes a context menu. The class, and context menu, appears to work fine when I run the application but when I look at the designer for the class I get the errors : The...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
tracyyun
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...
0
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,...
0
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 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.