1
Answer

Setting values to a custom control in a form from an other windows form

ciprian S

ciprian S

17y
2k
1

Hi,

I have in my application 2 forms. One in which I have to create some custom controls(the custom control is created from a label,textbox and an button) . the values for the custom controls have to come from the other form (new custom control )  when I press a button. How can I create this contols dinamicaly on the first form from the second or how can I transmmit the values from one form to another if the second form has to be closed when I pressed the button?

 

Thanks.

Answers (1)
0
Johnny GC

Johnny GC

NA 42 0 16y
I do not know exactly what you mean but you might want the second form to be a variable in first one and just change parent property for the custom controls, see if this helps,

Johnny.