Click here to Skip to main content
15,885,767 members
Home / Discussions / C#
   

C#

 
AnswerRe: Multiple Monitors Pin
ricmil4220-Feb-07 6:14
ricmil4220-Feb-07 6:14 
Questionmobile Pin
B.A20-Feb-07 4:48
B.A20-Feb-07 4:48 
QuestionContext menu Pin
CodeItWell20-Feb-07 4:18
CodeItWell20-Feb-07 4:18 
AnswerRe: Context menu Pin
Martin#20-Feb-07 4:34
Martin#20-Feb-07 4:34 
GeneralRe: Context menu Pin
CodeItWell20-Feb-07 5:01
CodeItWell20-Feb-07 5:01 
AnswerRe: Context menu Pin
Martin#20-Feb-07 5:07
Martin#20-Feb-07 5:07 
GeneralRe: Context menu Pin
CodeItWell20-Feb-07 6:02
CodeItWell20-Feb-07 6:02 
GeneralRe: Context menu Pin
Martin#20-Feb-07 6:08
Martin#20-Feb-07 6:08 
Hello,

You have to use the EventArgs properties "X" and "Y"!

private void button1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
    if(e.Button == MouseButtons.Left)
    {
        if(button1.ContextMenu!=null)
        {
            button1.ContextMenu.Show(button1, new System.Drawing.Point(e.X, e.Y));
        }
    }
}


All the best,

Martin
GeneralRe: Context menu Pin
Stefan Troschuetz20-Feb-07 6:13
Stefan Troschuetz20-Feb-07 6:13 
GeneralRe: Context menu Pin
CodeItWell20-Feb-07 8:24
CodeItWell20-Feb-07 8:24 
GeneralRe: Context menu Pin
Martin#20-Feb-07 21:08
Martin#20-Feb-07 21:08 
GeneralRe: Context menu Pin
Stefan Troschuetz20-Feb-07 21:35
Stefan Troschuetz20-Feb-07 21:35 
GeneralRe: Context menu Pin
Martin#20-Feb-07 21:41
Martin#20-Feb-07 21:41 
QuestionDynamic Gantt chart Pin
shamsteady20-Feb-07 4:16
shamsteady20-Feb-07 4:16 
AnswerRe: Dynamic Gantt chart Pin
Colin Angus Mackay20-Feb-07 5:06
Colin Angus Mackay20-Feb-07 5:06 
GeneralRe: Dynamic Gantt chart Pin
shamsteady20-Feb-07 5:21
shamsteady20-Feb-07 5:21 
GeneralRe: Dynamic Gantt chart Pin
Colin Angus Mackay20-Feb-07 13:30
Colin Angus Mackay20-Feb-07 13:30 
Questionsettings in C# Pin
hadjy10120-Feb-07 3:58
hadjy10120-Feb-07 3:58 
AnswerRe: settings in C# Pin
DavidNohejl20-Feb-07 4:43
DavidNohejl20-Feb-07 4:43 
AnswerRe: settings in C# Pin
Radgar20-Feb-07 4:44
Radgar20-Feb-07 4:44 
AnswerRe: settings in C# Pin
hadjy10120-Feb-07 5:32
hadjy10120-Feb-07 5:32 
QuestionDLL Hell? Pin
Radgar20-Feb-07 3:41
Radgar20-Feb-07 3:41 
AnswerRe: DLL Hell? Pin
kubben20-Feb-07 3:49
kubben20-Feb-07 3:49 
GeneralRe: DLL Hell? Pin
Radgar20-Feb-07 3:51
Radgar20-Feb-07 3:51 
GeneralRe: DLL Hell? Pin
Dave Kreskowiak20-Feb-07 6:44
mveDave Kreskowiak20-Feb-07 6:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.