Hi,
You can use the ContextMenu.Popup event to determine when the context menu
is raised. Then try Control.MousePosition to determine the mouse position.
You'll still have to add your own logic to determine the exact cell
affected...but this might help you out a bit.
-Katie
This posting is provided "AS IS" with no warranties, and confers no rights.
***.Net Compact Framework Info***
Faq:
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.a
spx
QuickStarts:
http://samples.gotdotnet.com/quickstart/CompactFramework/
Samples:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
tml/CompactfxTechArt.asp
--------------------
| Content-Class: urn:content-classes:message
| From: "Kevin Z Grey" <
[email protected]>
| Sender: "Kevin Z Grey" <
[email protected]>
| Subject: ContextMenu Location
| Date: Fri, 26 Dec 2003 08:07:40 -0800
| Lines: 13
| Message-ID: <
[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Thread-Index: AcPLymNtkbxUQD7FT7iD4Ef0XhXZug==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Path: cpmsftngxa07.phx.gbl
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:41721
| NNTP-Posting-Host: tk2msftngxa08.phx.gbl 10.40.1.160
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Heya,
|
| I know this topic has been visited several times, but
| does anyone know how to determine the Cell location where
| a ContextMenu has popped up? In other words, I need the
| Column,Row numbers for the cell below the ContextMenu. Is
| this possible?
|
| What I have done so far is to listen for Mouse events,
| but I don't get any callbacks for mouse events with
| respect to ContextMenu pop ups.
|
| ~~K
|