Glenn, I think Karhti is asking the following:
Say I have a laptop screen that is 1280x800. My app is full screen/maximized with a DGV on it. If I use the mouse to select an item, I can get the X and Y coordinates of the mouse on the Click event(s) to display some menu or pop-up window. I can show the pop-up/menu at the EXACT X/Y of the mouse event. However, using the keyboard UP/DOWN keys to select an item and hitting another key to bring up the menu/pop-up doesn't put it in the correct location because the mouse X/Y location could be anywhere on the screen since it wasn't used to select the current row in the DGV. The mouse could be off the at the bottom of the screen For example, when I am doing heavy keyboard work, I push the mouse to the top-right of my screen out of the way. So on my monitor the X/Y would be 1440/0. Not the best place to show a menu/pop-up and it certainly wouldn't show the X/Y of the currently selected DGV item. I have never had a need to do things this way. I will run some tests when I have time to see what I can find. On Sat, Oct 25, 2008 at 11:41 AM, Glenn <[EMAIL PROTECTED]> wrote: > It doesn't make a difference if the item was selected using the mouse of if > you're using the keyboard. > > ...Glenn > > On Sat, Oct 25, 2008 at 8:05 AM, karthi keyan <[EMAIL PROTECTED]> wrote: > >> Hi Glenn, >> >> I agree with you, Yes, there is no need to know where it is, however if I >> use the up/down arrow key & press the APPS key, I want the context menu >> to be populated at that particular cell location (I have done this using >> DGV mouse down event, this time I don't wanna use Mouse) I tried but I was >> not able to find a proper solution for this. >> >> can you please guide me? Please correct me if I am wrong. >> >> Regards, >> Karhti >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/DotNetDevelopment You may subscribe to group Feeds using a RSS Feed Reader to stay upto date using following url <a href="http://feeds.feedburner.com/DotNetDevelopment"> http://feeds.feedburner.com/DotNetDevelopment</a> -~----------~----~----~----~------~----~------~--~---
