Click here to Skip to main content
16,011,947 members
Home / Discussions / C#
   

C#

 
Questionc# Pin
ManojKumarShah201722-Jun-08 16:49
ManojKumarShah201722-Jun-08 16:49 
AnswerRe: c# Pin
Bert delaVega22-Jun-08 17:37
Bert delaVega22-Jun-08 17:37 
AnswerRe: c# Pin
Christian Graus22-Jun-08 18:00
protectorChristian Graus22-Jun-08 18:00 
Questionmultiline textbox to .doc file Pin
ginji2022-Jun-08 15:25
ginji2022-Jun-08 15:25 
AnswerRe: multiline textbox to .doc file Pin
Christian Graus22-Jun-08 16:03
protectorChristian Graus22-Jun-08 16:03 
GeneralRe: multiline textbox to .doc file Pin
ginji2022-Jun-08 19:46
ginji2022-Jun-08 19:46 
GeneralRe: multiline textbox to .doc file Pin
Christian Graus22-Jun-08 19:56
protectorChristian Graus22-Jun-08 19:56 
QuestionCodeDOM passing parameters Pin
xJorDyx22-Jun-08 13:46
xJorDyx22-Jun-08 13:46 
I want to be able to save myself writing a lot of code and use the CodeDOM to do some dynamic generation. I'll try my best to explain it :-/

I have several classes all which have a "Create" method and all create different windows components for example
Class ButtonControl
{

    public static void Create(ButtonValues values, Button button)
    {

        button.Text = values.Text;
        ...

    }

}
Class LabelControl
{

    public static void Create( LabelValues values,Label button)
    {

        Label.Text = values.Text;
        ...

    }

}
Then i want to be able to dynamically call one of these from a function like
void CreateControl(string TYPE, Control selected)
{

    //Put code dom stuff here
    TYPE.Create(values, selected);

}


And i don't have any idea how to pass the parameters like that with the CodeDOM i have little experience with it, any help would be appreciated
AnswerRe: CodeDOM passing parameters Pin
Mark Churchill22-Jun-08 20:21
Mark Churchill22-Jun-08 20:21 
GeneralRe: CodeDOM passing parameters Pin
xJorDyx23-Jun-08 9:35
xJorDyx23-Jun-08 9:35 
QuestionCan we get program's number line after compiling the source ? Pin
Mohammad Dayyan22-Jun-08 12:59
Mohammad Dayyan22-Jun-08 12:59 
AnswerRe: Can we get program's number line after compiling the source ? Pin
Gareth H22-Jun-08 13:05
Gareth H22-Jun-08 13:05 
AnswerRe: Can we get program's number line after compiling the source ? Pin
Luc Pattyn22-Jun-08 13:18
sitebuilderLuc Pattyn22-Jun-08 13:18 
GeneralRe: Can we get program's number line after compiling the source ? Pin
Mohammad Dayyan23-Jun-08 2:07
Mohammad Dayyan23-Jun-08 2:07 
GeneralRe: Can we get program's number line after compiling the source ? Pin
Luc Pattyn23-Jun-08 2:08
sitebuilderLuc Pattyn23-Jun-08 2:08 
AnswerRe: Can we get program's number line after compiling the source ? Pin
Mohammad Dayyan23-Jun-08 2:48
Mohammad Dayyan23-Jun-08 2:48 
QuestionNewbie Question Pin
kruegersck22-Jun-08 12:59
kruegersck22-Jun-08 12:59 
AnswerRe: Newbie Question Pin
Gareth H22-Jun-08 13:03
Gareth H22-Jun-08 13:03 
GeneralRe: Newbie Question Pin
kruegersck22-Jun-08 13:09
kruegersck22-Jun-08 13:09 
GeneralRe: Newbie Question Pin
Christian Graus22-Jun-08 15:12
protectorChristian Graus22-Jun-08 15:12 
GeneralRe: Newbie Question Pin
kruegersck22-Jun-08 16:28
kruegersck22-Jun-08 16:28 
GeneralRe: Newbie Question Pin
Christian Graus22-Jun-08 18:27
protectorChristian Graus22-Jun-08 18:27 
GeneralRe: Newbie Question Pin
kruegersck23-Jun-08 2:58
kruegersck23-Jun-08 2:58 
GeneralRe: Newbie Question Pin
Christian Graus23-Jun-08 11:36
protectorChristian Graus23-Jun-08 11:36 
QuestionDrog and Drop question ? Pin
Mohammad Dayyan22-Jun-08 11:17
Mohammad Dayyan22-Jun-08 11: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.