Hai all.....
I have drawn a rectangle in my window appln output.The issue is when i right click the rectangle an select a option(i.e expand) it should perform expand as wriiten by me....But when i right click in other area other than the rectangle right click expand should not work...
Hope i made myself clear how am i go about it....
Right click in a particular region of a window
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Kirtan PatelRank #292 · 8.6K reputationPosted Aug 5, 2009, 11:48 PM EDT
Hi Drag a panel and Dock in Whole Form Then by Following Code you can display Context Menu on Particular Position on Panel private void panel1_MouseClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) { if (e.X new Point(Cursor.Position.X,Cursor.Position.Y)); } } }