Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Forms, Dialogs, TitleBar, StatusStrip > Add dynamic control in dynamic form

Not answered Add dynamic control in dynamic form

Feed from this thread
  • Andre avatar

    Posted on Aug 3, 2011 (permalink)

    Hi,
    I am creating a dynamic form and after adding dynamic controls but i receive this message (" The best overloaded method match for 'System.Windows.Forms.Control.ControlCollection.Add(System.Windows.Forms.Control)' has some invalid arguments  ")
    and (" cannot convert from 'Telerik.WinControls.UI.RadGroupBox' to 'System.Windows.Forms.Control' ")

    Here is the code:
    Form frm = new Form();
    RadGroupBox groupb = new RadGroupBox();
    frm.Controls.Add(groupb);

    Can you help me?

    Reply

  • Andre avatar

    Posted on Aug 4, 2011 (permalink)

    Ok, solved.

    I add reference telerik.WinControls and now works ok.

    Reply

  • Stefan Stefan admin's avatar

    Posted on Aug 9, 2011 (permalink)

    Hello Andre,

    I am glad to hear that you have solved the case. Should you have any other questions, do not hesitate to contact us.

    All the best,
    Stefan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Forms, Dialogs, TitleBar, StatusStrip > Add dynamic control in dynamic form
Related resources for "Add dynamic control in dynamic form"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]