locked
Adding User Controls Dynamically RRS feed

  • Question

  •  I created user control with a label and a textbox. Now i want to add the user control to form based on the month range i.e month from and month to which will be given by the user. New control is created successfully but the problem is not the form size not increased based on the control. 

    Note : I am using FlowlayoutPanel for adding controls. I do not want use the Auto scroll property of FlowlayoutPanel .

    Thanks in advance

    Tuesday, March 25, 2014 9:42 AM

Answers

  • Hi Carmel Raj M,

    >>not the form size not increased based on the control

    What do you mean here? Typo? The form size not increased based on that usercontrol?

    You know that event if you are not using a usercontrol but using a normal control like textbox or button, control resize will not make your form resize. It is only that your form's resize will affect your control resize.

    Please clarify more details about what you want first.

    Regards,



    Barry Wang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Barry Wang Tuesday, April 8, 2014 9:41 AM
    Wednesday, March 26, 2014 9:46 AM