Click here to Skip to main content
15,892,797 members
Home / Discussions / C#
   

C#

 
AnswerRe: GDI Related issue - External Exception being thrown in System.Drawing.dll Pin
Luc Pattyn5-Mar-10 13:35
sitebuilderLuc Pattyn5-Mar-10 13:35 
GeneralRe: GDI Related issue - External Exception being thrown in System.Drawing.dll Pin
Eagle326-Mar-10 0:04
Eagle326-Mar-10 0:04 
GeneralRe: GDI Related issue - External Exception being thrown in System.Drawing.dll Pin
BryanWilkins6-Mar-10 3:55
professionalBryanWilkins6-Mar-10 3:55 
GeneralRe: GDI Related issue - External Exception being thrown in System.Drawing.dll Pin
Eagle3210-Mar-10 11:28
Eagle3210-Mar-10 11:28 
GeneralRe: GDI Related issue - External Exception being thrown in System.Drawing.dll Pin
BryanWilkins10-Mar-10 11:32
professionalBryanWilkins10-Mar-10 11:32 
QuestionDynamic Form Pin
eddieangel5-Mar-10 9:21
eddieangel5-Mar-10 9:21 
AnswerRe: Dynamic Form Pin
BryanWilkins5-Mar-10 9:58
professionalBryanWilkins5-Mar-10 9:58 
AnswerRe: Dynamic Form Pin
MollyTheCoder5-Mar-10 10:11
MollyTheCoder5-Mar-10 10:11 
It's hard to tell where your 15 choices come from, but I recently had a similar problem. If you're choices are based on a reasonably designed class or classes, you should look at using reflection to dynamically add the controls you need:
foreach (Type mytype in Assembly.GetEntryAssembly().GetTypes())
{
  if (type_matches_criteria)
  {
    (create new control)
    (adjust control details and location)
    Controls.Add(new_control)
  }
}

Then to use your controls:
foreach (Control ctrl in (from Control c in Controls where c (meets criteria) select c))
{
  if (ctrl.Checked) // or whatever
  {
     ctrl.Text = "Blah";
  }
}

QuestionHow to: Launch an application and embed it into a dockable window? Pin
Shmulik285-Mar-10 9:06
Shmulik285-Mar-10 9:06 
AnswerRe: How to: Launch an application and embed it into a dockable window? Pin
DaveyM695-Mar-10 9:16
professionalDaveyM695-Mar-10 9:16 
GeneralRe: How to: Launch an application and embed it into a dockable window? Pin
Giorgi Dalakishvili6-Mar-10 2:49
mentorGiorgi Dalakishvili6-Mar-10 2:49 
QuestionDisable DataGridViewTextBoxCell Right Click Menu Pin
potatoe915-Mar-10 8:49
potatoe915-Mar-10 8:49 
QuestionProgram inter-instance communication? Pin
Matthew Klein5-Mar-10 8:00
Matthew Klein5-Mar-10 8:00 
AnswerRe: Program inter-instance communication? Pin
kevinnicol5-Mar-10 8:34
kevinnicol5-Mar-10 8:34 
AnswerRe: Program inter-instance communication? Pin
Matthew Klein5-Mar-10 8:50
Matthew Klein5-Mar-10 8:50 
QuestionHow to access PointInLink() for a LinkLabel [modified] Pin
swo.priv5-Mar-10 7:38
swo.priv5-Mar-10 7:38 
QuestionHow to get the exact File the User Click on?? Pin
Britt Mills5-Mar-10 5:07
Britt Mills5-Mar-10 5:07 
AnswerRe: How to get the exact File the User Click on?? Pin
Luc Pattyn5-Mar-10 5:18
sitebuilderLuc Pattyn5-Mar-10 5:18 
GeneralRe: How to get the exact File the User Click on?? Pin
Britt Mills5-Mar-10 5:28
Britt Mills5-Mar-10 5:28 
GeneralRe: How to get the exact File the User Click on?? Pin
Luc Pattyn5-Mar-10 5:36
sitebuilderLuc Pattyn5-Mar-10 5:36 
GeneralRe: How to get the exact File the User Click on?? Pin
Britt Mills5-Mar-10 6:10
Britt Mills5-Mar-10 6:10 
QuestionVoice Enabled System Pin
amitk_1895-Mar-10 4:55
amitk_1895-Mar-10 4:55 
AnswerRe: Voice Enabled System Pin
Not Active5-Mar-10 5:04
mentorNot Active5-Mar-10 5:04 
GeneralRe: Voice Enabled System Pin
amitk_1895-Mar-10 5:13
amitk_1895-Mar-10 5:13 
GeneralRe: Voice Enabled System Pin
Not Active5-Mar-10 5:17
mentorNot Active5-Mar-10 5:17 

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.