This is a migrated thread and some comments may be shown as answers.

Installing RibbonForm Template

3 Answers 110 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
lkeel
Top achievements
Rank 1
lkeel asked on 06 Apr 2009, 02:24 PM
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

3 Answers, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 07 Apr 2009, 03:19 PM
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
0
lkeel
Top achievements
Rank 1
answered on 07 Apr 2009, 08:24 PM
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.
0
John
Top achievements
Rank 1
answered on 07 Apr 2009, 08:39 PM
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();  
        }  
    }  
  

Tags
RibbonBar
Asked by
lkeel
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
lkeel
Top achievements
Rank 1
Share this question
or