Add dynamic control in dynamic form

3 posts, 0 answers
  1. Andre
    Andre avatar
    2 posts
    Member since:
    Aug 2011

    Posted 03 Aug 2011 Link to this post

    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?
  2. Andre
    Andre avatar
    2 posts
    Member since:
    Aug 2011

    Posted 04 Aug 2011 Link to this post

    Ok, solved.

    I add reference telerik.WinControls and now works ok.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 09 Aug 2011 Link to this post

    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 >>

Back to Top