inherit radform

6 posts, 1 answers
  1. Sam
    Sam avatar
    14 posts
    Member since:
    Sep 2012

    Posted 04 Oct 2012 Link to this post

    I've created RadForm1 and renamed it to MotherForm and put several components on it. Then I've created new RadForm(AlterForm) and inherit it from MotherForm. 
    public partial class AlterForm : MotherForm

    But in AlterForm designer I've got an error

    The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: DropForm --- The base class 'AdminControl.MotherForm' could not be loaded. Ensure the assembly has been referenced and that all projects have been built.



    Where can be a problem?
  2. Answer
    Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 09 Oct 2012 Link to this post

    Hello Jei,

    Thank you for writing.

    After you inherit the MotherForm, please close all designer windows and rebuild the project and the open the AlterForm in design time. 

    Let me know how this works for you.

    All the best,
    Stefan
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Sam
    Sam avatar
    14 posts
    Member since:
    Sep 2012

    Posted 11 Oct 2012 Link to this post

    I've restarted visual studio and then it started to work.
  5. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 12 Oct 2012 Link to this post

    Great news. I am glad everything is now OK on your end.
     
    Regards,
    Stefan
    the Telerik team
    You’ve been asking for it and now it’s time for us to deliver. RadControls for WinForms Q3 2012 release is just around the corner. Sign up for a free webinar to see first all the latest enhancements.
  6. Hatred
    Hatred avatar
    1 posts
    Member since:
    Feb 2013

    Posted 01 Feb 2013 Link to this post

    Hi just tried what u said but my child form has no controls on it when Mother form has many i check the modifiers of the controls and they're all protected what can i do ? it just load with nothing on it .. thanks in advance
  7. Plamen
    Admin
    Plamen avatar
    132 posts

    Posted 06 Feb 2013 Link to this post

    Hi Hatred,

    I tried to reproduce the described behavior, but to no avail. My child form has the same controls as the parent form. I am attaching a sample project which demonstrates the desired behavior.

    Let me know if you have additional questions.

    Regards,
    Plamen
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Back to Top
UI for WinForms is Visual Studio 2017 Ready