Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
AnswerTry Pin
Ennis Ray Lynch, Jr.10-Aug-06 5:07
Ennis Ray Lynch, Jr.10-Aug-06 5:07 
QuestionIdeas regarding the printing the DataGridView Pin
kalyanPaladugu10-Aug-06 4:33
kalyanPaladugu10-Aug-06 4:33 
AnswerRe: Ideas regarding the printing the DataGridView Pin
Judah Gabriel Himango10-Aug-06 5:12
sponsorJudah Gabriel Himango10-Aug-06 5:12 
QuestionNewbie: Best way to populate a context menu from DB? Pin
Phillip Hodges10-Aug-06 4:29
Phillip Hodges10-Aug-06 4:29 
AnswerRe: Newbie: Best way to populate a context menu from DB? Pin
Ennis Ray Lynch, Jr.10-Aug-06 4:54
Ennis Ray Lynch, Jr.10-Aug-06 4:54 
GeneralRe: Newbie: Best way to populate a context menu from DB? Pin
Anil Ch10-Aug-06 6:16
Anil Ch10-Aug-06 6:16 
GeneralRe: Newbie: Best way to populate a context menu from DB? Pin
Ennis Ray Lynch, Jr.10-Aug-06 8:22
Ennis Ray Lynch, Jr.10-Aug-06 8:22 
GeneralRe: Newbie: Best way to populate a context menu from DB? Pin
LongRange.Shooter10-Aug-06 8:23
LongRange.Shooter10-Aug-06 8:23 
All you have to do is bind your events at the time you create each context menu item. You would basically be doing in abstract code, what the designer does with hard coded code.

foreach ( string element in myListofThings )
{
     ToolStripMenuItem menu = new ToolStripMenuItem();
     menu.Name = element.ToLower();
     menu.Text = element;
     menu.Click+=new SystemEventHandler(HandleContextClick);
     myContextMenu.Add( menu );
     foreach ( string subElement in SubElementList )
     {
         ToolStripMenuItem submenu = new ToolStripMenuItem();
         blah blah blah
         submenu.Click+=new SystemEventHandler(HandleSubContextClick);
     }
}


Suspicious | :suss:
QuestionWinForms.ReportViewer DoubleClick event Pin
bahaa_sa510-Aug-06 4:25
bahaa_sa510-Aug-06 4:25 
Questionasynchronous execution Pin
pranu_1310-Aug-06 4:16
pranu_1310-Aug-06 4:16 
AnswerRe: asynchronous execution Pin
Judah Gabriel Himango10-Aug-06 5:13
sponsorJudah Gabriel Himango10-Aug-06 5:13 
AnswerRe: asynchronous execution Pin
LongRange.Shooter10-Aug-06 8:25
LongRange.Shooter10-Aug-06 8:25 
Questionsend parameter to MSWord and then print it Pin
TAREQ F ABUZUHRI10-Aug-06 4:13
TAREQ F ABUZUHRI10-Aug-06 4:13 
AnswerRe: send parameter to MSWord and then print it Pin
TAREQ F ABUZUHRI10-Aug-06 4:18
TAREQ F ABUZUHRI10-Aug-06 4:18 
GeneralRe: send parameter to MSWord and then print it Pin
Khalid Sabtan3-Jul-12 12:05
Khalid Sabtan3-Jul-12 12:05 
QuestionC# Newbie: What is the ":" for?? [modified] Pin
Goalie3510-Aug-06 2:59
Goalie3510-Aug-06 2:59 
AnswerRe: C# Newbie: What is the ":" for?? Pin
V.10-Aug-06 3:15
professionalV.10-Aug-06 3:15 
AnswerRe: C# Newbie: What is the ":" for?? Pin
Roy Heil10-Aug-06 3:17
professionalRoy Heil10-Aug-06 3:17 
AnswerRe: C# Newbie: What is the ":" for?? Pin
Ennis Ray Lynch, Jr.10-Aug-06 4:13
Ennis Ray Lynch, Jr.10-Aug-06 4:13 
AnswerRe: C# Newbie: What is the ":" for?? [modified] Pin
LongRange.Shooter10-Aug-06 7:50
LongRange.Shooter10-Aug-06 7:50 
GeneralRe: C# Newbie: What is the ":" for?? Pin
Ennis Ray Lynch, Jr.10-Aug-06 8:23
Ennis Ray Lynch, Jr.10-Aug-06 8:23 
JokeRe: C# Newbie: What is the ":" for?? Pin
LongRange.Shooter10-Aug-06 10:34
LongRange.Shooter10-Aug-06 10:34 
Questionclient/server problem Pin
aeliminate10-Aug-06 2:20
aeliminate10-Aug-06 2:20 
AnswerRe: client/server problem Pin
Andrei Ungureanu10-Aug-06 2:37
Andrei Ungureanu10-Aug-06 2:37 
GeneralRe: client/server problem Pin
aeliminate10-Aug-06 3:21
aeliminate10-Aug-06 3:21 

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.