PC Review


Reply
Thread Tools Rate Thread

Activate Context menu - Using Keyboard

 
 
Christopher Pragash
Guest
Posts: n/a
 
      2nd Dec 2004
Hello All,

I am trying to instantiate a Context Menu inside a Datagrid control - using
a keyboard. The requirement is such that, the user navigates in the datagrid
using the up-down arrows of the keyboard, and presses "Enter" key on the row
which he wants to perform the action. Any thoughts or suggestions on how I
could achieve this? or if anybody could point me to an article or URL
explaining this..that will be of good help.

Thanks in advance...

Cheers,
Chris


 
Reply With Quote
 
 
 
 
Daniel Moth
Guest
Posts: n/a
 
      2nd Dec 2004
Use ContextMenu.Show. A discussion of its pitfalls and some link are here:
http://www.danielmoth.com/Blog/2004/...tmenushow.html

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


"Christopher Pragash" <(E-Mail Removed)> wrote in message
news:%234s$(E-Mail Removed)...
> Hello All,
>
> I am trying to instantiate a Context Menu inside a Datagrid control -
> using
> a keyboard. The requirement is such that, the user navigates in the
> datagrid
> using the up-down arrows of the keyboard, and presses "Enter" key on the
> row
> which he wants to perform the action. Any thoughts or suggestions on how I
> could achieve this? or if anybody could point me to an article or URL
> explaining this..that will be of good help.
>
> Thanks in advance...
>
> Cheers,
> Chris
>
>



 
Reply With Quote
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      2nd Dec 2004
ContextMenu.Show(this, pt) should do it.

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Christopher Pragash" <(E-Mail Removed)> wrote in message
news:%234s$(E-Mail Removed)...
> Hello All,
>
> I am trying to instantiate a Context Menu inside a Datagrid control -
> using
> a keyboard. The requirement is such that, the user navigates in the
> datagrid
> using the up-down arrows of the keyboard, and presses "Enter" key on the
> row
> which he wants to perform the action. Any thoughts or suggestions on how I
> could achieve this? or if anybody could point me to an article or URL
> explaining this..that will be of good help.
>
> Thanks in advance...
>
> Cheers,
> Chris
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display "Activate" dialog from sheet navigation context menu ward376 Microsoft Excel Programming 1 5th Apr 2007 10:47 PM
How do you activate Faststone menu bar from keyboard? Phil R Freeware 2 26th Jan 2006 12:06 PM
datagrid - show Context menu using Keyboard kakss@hotmail.com Microsoft VB .NET 0 28th May 2005 09:35 AM
Context menu and keyboard hooks =?ISO-8859-1?Q?Christoph_Br=FCser?= Microsoft Dot NET Framework Forms 0 5th Apr 2005 11:47 AM
Context Menu - Microsofts standard file context menu =?Utf-8?B?TWFybg==?= Microsoft C# .NET 0 6th Dec 2004 08:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:02 PM.