Installing RibbonForm Template

4 posts, 0 answers
  1. lkeel
    lkeel avatar
    115 posts
    Member since:
    Jul 2012

    Posted 06 Apr 2009 Link to this post

    I have been trying to install the Q1 2009 templates for the windows form controls.  I have followed exactly what the KB article says at http://www.telerik.com/support/kb/winforms/general/installing-telerik-templates-in-visual-studio-2008.aspx, but the templates are not showing when I try
    to do a new project. Can anyone shed some light on here as to what I may be missing?

    Also, all of this started because I wanted to use the RibbonForm as my starting form. But the problem there is that the default Application.Run won't work
    because RibbonForm does not inherit from Windows.Form. So, can someone tell me how to execute and start my applicaiton without this inheritance?

    Thanks in advance,
    LK
  2. John
    John avatar
    30 posts
    Member since:
    Aug 2008

    Posted 07 Apr 2009 Link to this post

    You should be using the Telerik.WinControls.RadRibbonForm.  Once you have installed the templates using the knowledgebase you mentioned below, you will need to add a new RadRibbonForm to the project.  You will want to refer to the following article http://www.telerik.com/support/kb/winforms/forms-and-dialogs/adding-radribbonform.aspx.  I have also put together a blog post (http://blogs.telerik.com/johnkellar/posts/09-04-07/installing_and_using_the_radribbonform_template.aspx) walking you through the entire process with screenshots, which should be another useful reference.

    Hope this helps,
    John
  3. UI for WinForms is Visual Studio 2017 Ready
  4. lkeel
    lkeel avatar
    115 posts
    Member since:
    Jul 2012

    Posted 07 Apr 2009 Link to this post

    Thanks for the reply John.  I was thinking that the RibbonFormTemplate would show on the main section when creating a new Project.  The reason I say that is because if you remove the Form1 and try to launch the RibbonForm from the Application.Run(new RibbonForm1()), then you will get an error that says that RibbonForm1 does not inherit from Windows.Form.
  5. John
    John avatar
    30 posts
    Member since:
    Aug 2008

    Posted 07 Apr 2009 Link to this post

    I am able to use the RadRibbonForm template to add a RadRibbonForm1 to my project, remove Form1 and set the RadRibbonForm1 as my startup in Program.cs.  Are you doing it via the Add New Item as I mentioned or are you changing a WinForm directly to be a RibbonForm.  The reason I ask if that under Telerik.WinControls.Themes.ControlDefault there is a RibbonForm, but that is not what you should be using.  You want to use Telerik.WinControls.RadRibbonForm.  Can you create a new project and change Form1 to look like the following and let me know if it worked?
        BEFORE
        public partial class Form1 : Form  
        {  
            public Form1()  
            {  
                InitializeComponent();  
            }  
        }  
        AFTER
        public partial class Form1 : Telerik.WinControls.RadRibbonForm  
        {  
            public Form1()  
            {  
                InitializeComponent();  
            }  
        }  
      

Back to Top