PC Review


Reply
Thread Tools Rate Thread

Context Menu Position

 
 
Salazaar
Guest
Posts: n/a
 
      16th Mar 2004
Hi,

Is there a way to make a ContextMenu always appear at a particular position
only, irrespective of where on the control the mouse is clicked.By default,
it appears slightly to the right of the mouse pointer when the appropriate
control is clicked.

Specifically, I want my contextmenu to appear attached to the bottom of a
button, whenever the button is clicked.

Please help.


 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      16th Mar 2004
The ContextMenu.Show method allows you to specify a Point relative to the
owner control (or form).

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org

"Salazaar" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Is there a way to make a ContextMenu always appear at a particular

position
> only, irrespective of where on the control the mouse is clicked.By

default,
> it appears slightly to the right of the mouse pointer when the appropriate
> control is clicked.
>
> Specifically, I want my contextmenu to appear attached to the bottom of a
> button, whenever the button is clicked.
>
> Please help.
>
>



 
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
Context menu position =?Utf-8?B?TFVaWkVM?= Microsoft Dot NET Framework Forms 1 8th Nov 2007 09:39 PM
Context Menu Position Salazaar Microsoft Dot NET Framework Forms 2 16th Mar 2004 05:36 PM
Context Menu Position Salazaar Microsoft Dot NET Framework 0 16th Mar 2004 03:52 PM
position within context menu arthur Windows XP Basics 6 1st Dec 2003 07:09 PM
Context menu position cskkleung Microsoft Dot NET Compact Framework 2 9th Aug 2003 12:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:28 PM.