Click here to Skip to main content
15,914,419 members
Home / Discussions / C#
   

C#

 
GeneralProblem with Stored Procedure's Return value Pin
ronin177018-Jul-04 15:23
ronin177018-Jul-04 15:23 
GeneralRe: Problem with Stored Procedure's Return value Pin
woudwijk18-Jul-04 21:19
woudwijk18-Jul-04 21:19 
GeneralRe: Problem with Stored Procedure's Return value Pin
dishanf19-Jul-04 1:19
dishanf19-Jul-04 1:19 
GeneralCalling richTextBox from other namespaces many times Pin
evdoxos18-Jul-04 13:53
evdoxos18-Jul-04 13:53 
GeneralRe: Calling richTextBox from other namespaces many times Pin
Judah Gabriel Himango18-Jul-04 14:48
sponsorJudah Gabriel Himango18-Jul-04 14:48 
GeneralRe: Calling richTextBox from other namespaces many times Pin
evdoxos18-Jul-04 23:00
evdoxos18-Jul-04 23:00 
GeneralMenu like Windows Start menu Pin
webhay18-Jul-04 10:03
webhay18-Jul-04 10:03 
GeneralRe: Menu like Windows Start menu Pin
Heath Stewart19-Jul-04 3:07
protectorHeath Stewart19-Jul-04 3:07 
The simplest way is to add a Button to your container (like a Form or UserControl) and a ContextMenu that is either defined with the MenuItems you want, or adds them dynamically in the ContextMenu.Popup event handler. In the handler for the Button.Click event (inheritted from Control), call ContextMenu.Show, passing the Button that was clicked and some Point, like the X and Y coordinates of the mouse position (remembering to transform the coordinates into client coordinates using Control.PointToClient) or some corner of the Button (like new Point(0, 0) for the upper-left corner, since the coordinates are relative to the control you pass in the first parameter).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Menu like Windows Start menu Pin
webhay19-Jul-04 7:37
webhay19-Jul-04 7:37 
GeneralRe: Menu like Windows Start menu Pin
Heath Stewart19-Jul-04 8:34
protectorHeath Stewart19-Jul-04 8:34 
GeneralRe: Menu like Windows Start menu Pin
Anonymous19-Jul-04 13:07
Anonymous19-Jul-04 13:07 
GeneralDirect X Picturebox Pin
Wjousts18-Jul-04 9:11
Wjousts18-Jul-04 9:11 
QuestionHow we can dealing with TAPI in C# ? Pin
Wail A.Salem18-Jul-04 7:53
Wail A.Salem18-Jul-04 7:53 
AnswerRe: How we can dealing with TAPI in C# ? Pin
Nick Parker18-Jul-04 10:55
protectorNick Parker18-Jul-04 10:55 
QuestionSubscript button for richtextbox? Pin
BrownJacket18-Jul-04 3:28
BrownJacket18-Jul-04 3:28 
AnswerRe: Subscript button for richtextbox? Pin
mav.northwind18-Jul-04 21:57
mav.northwind18-Jul-04 21:57 
GeneralRe: Subscript button for richtextbox? Pin
BrownJacket19-Jul-04 10:39
BrownJacket19-Jul-04 10:39 
GeneralCreating object using ActiveX Component Pin
Member 32469018-Jul-04 3:10
Member 32469018-Jul-04 3:10 
Generalabout dictionary Pin
ala'a ali18-Jul-04 1:29
sussala'a ali18-Jul-04 1:29 
GeneralRe: about dictionary Pin
Colin Angus Mackay18-Jul-04 10:40
Colin Angus Mackay18-Jul-04 10:40 
Generalwho can tell me what's wrong with this function Pin
noosword17-Jul-04 22:13
noosword17-Jul-04 22:13 
Questionhow to get the system shell imagelist Pin
noosword17-Jul-04 17:37
noosword17-Jul-04 17:37 
AnswerRe: how to get the system shell imagelist Pin
J. Dunlap17-Jul-04 18:11
J. Dunlap17-Jul-04 18:11 
GeneralIntegrating the Media Player Pin
Yonaz17-Jul-04 13:43
Yonaz17-Jul-04 13:43 
GeneralRe: Integrating the Media Player Pin
Yonaz18-Jul-04 6:59
Yonaz18-Jul-04 6:59 

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.