Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to Get Value from one form to another form. Pin
led mike21-Feb-07 12:04
led mike21-Feb-07 12:04 
GeneralRe: How to Get Value from one form to another form. Pin
Martin#21-Feb-07 19:54
Martin#21-Feb-07 19:54 
GeneralRe: How to Get Value from one form to another form. Pin
led mike22-Feb-07 4:36
led mike22-Feb-07 4:36 
GeneralRe: How to Get Value from one form to another form. Pin
Martin#22-Feb-07 8:03
Martin#22-Feb-07 8:03 
GeneralRe: How to Get Value from one form to another form. Pin
led mike22-Feb-07 9:56
led mike22-Feb-07 9:56 
QuestionDataGrid Column Filtering Pin
Luka Grabarevic21-Feb-07 1:07
Luka Grabarevic21-Feb-07 1:07 
QuestionContext Menu strip Pin
hiremath7121-Feb-07 0:36
hiremath7121-Feb-07 0:36 
AnswerRe: Context Menu strip Pin
Martin#21-Feb-07 0:53
Martin#21-Feb-07 0:53 
Hello,

The ContextMenu property is a member of System.Windows.Forms.Control.
So if you set the property correct, you don't have to care about the position of the menu.

System.Windows.Forms.ContextMenu contextMenu1 = new System.Windows.Forms.ContextMenu();
System.Windows.Forms.MenuItem.MenuItemCollection mic = new System.Windows.Forms.Menu.MenuItemCollection(contextMenu1);
mic.Add("test1");
mic.Add("test2");
button1.ContextMenu = contextMenu1;


All the best,

Martin
GeneralRe: Context Menu strip Pin
hiremath7122-Feb-07 0:40
hiremath7122-Feb-07 0:40 
GeneralRe: Context Menu strip Pin
Benhar 200911-Oct-09 17:52
Benhar 200911-Oct-09 17:52 
GeneralRe: Context Menu strip Pin
Benhar 200911-Oct-09 17:53
Benhar 200911-Oct-09 17:53 
QuestionPop Up Menu Pin
hiremath7121-Feb-07 0:24
hiremath7121-Feb-07 0:24 
AnswerRe: Pop Up Menu Pin
stancrm21-Feb-07 0:44
stancrm21-Feb-07 0:44 
GeneralRe: Pop Up Menu Pin
hiremath7122-Feb-07 0:40
hiremath7122-Feb-07 0:40 
Questionhi!! [modified] Pin
Nekshan21-Feb-07 0:17
Nekshan21-Feb-07 0:17 
AnswerRe: hi!! Pin
virendra patel21-Feb-07 0:22
virendra patel21-Feb-07 0:22 
GeneralRe: hi!! Pin
Nekshan21-Feb-07 0:35
Nekshan21-Feb-07 0:35 
GeneralRe: hi!! Pin
virendra patel21-Feb-07 0:47
virendra patel21-Feb-07 0:47 
GeneralRe: hi!! Pin
Nekshan21-Feb-07 0:38
Nekshan21-Feb-07 0:38 
AnswerRe: hi!! Pin
Colin Angus Mackay21-Feb-07 0:32
Colin Angus Mackay21-Feb-07 0:32 
GeneralRe: hi!! Pin
Nekshan21-Feb-07 0:36
Nekshan21-Feb-07 0:36 
AnswerRe: hi!! Pin
Guffa21-Feb-07 1:40
Guffa21-Feb-07 1:40 
AnswerRe: hi!! Pin
virendra patel21-Feb-07 16:28
virendra patel21-Feb-07 16:28 
GeneralRe: hi!! Pin
Nekshan21-Feb-07 19:30
Nekshan21-Feb-07 19:30 
QuestionCalling a method from a form in another form [modified] Pin
motojojo20-Feb-07 23:56
motojojo20-Feb-07 23:56 

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.