Convert Winform to Radform and use of radribbonbar mainform

4 posts, 1 answers
  1. Ludovic
    Ludovic avatar
    12 posts
    Member since:
    Nov 2011

    Posted 09 Jan 2012 Link to this post

    Hello everyone,

    We are willing to update an application we started to develop since a few months with the Telerik components. I was wondering if there is a simple way to convert all the Winforms (about 100 of them) into Radforms easily?

    I have also another question:
    Once I convert all my winforms into radforms. I would like to display the forms inside the mainform with radribbonbar according on which button in the radribbonbar the user clicks. I found a solution: add a panel into the mainform. On each radform, below all the components there will be another panel which will be added or removed from the panel in the mainform according to what is needed. Do you think it's the best solution? Do you have any other solution?

    I could not find much information about the radform in the documentation... that's why I am asking on the forum.

    Thank you.
    LB.

  2. Answer
    Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 11 Jan 2012 Link to this post

    Hello Ludovic,

    Thank you for writing.

    If you are talking only about converting Forms to RadForms, this will be as easy as changing the name your form descends from i.e Form is replaced by RadForm. However, if you are talking about changing all your application controls from the standard Microsoft controls to RadControls for WinForms, such a conversion should be done manually for each control. We are trying to keep our API as close as possible to Microsoft's API in order to make such a transition easier.

    In regards to the second question, I am not quite sure that I can fully understand your current approach, however, I will suggest to use for a main form RadRibbonForm (since you want a ribbon on the main form) and then, add your child forms as MDI children. Attached to this post you can find a demo of this approach.

    I hope that you find this information helpful. Should you have any other questions, do not hesitate to contact us.
     
    Regards,
    Stefan
    the Telerik team

    SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ludovic
    Ludovic avatar
    12 posts
    Member since:
    Nov 2011

    Posted 11 Jan 2012 Link to this post

    Hello Stefan,

    I was thinking updating all the WinControls to RadControls in all the WinForms while converting them to RadForms. I will just do it manually as you said.

    Yes, we are using a RibbonBarForm as mainform. Thank you for the MDI children idea. I did not know how to do this before. That's exactly what I was looking for. It works perfectly.

    Have a good day! :)
    LB

  5. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 16 Jan 2012 Link to this post

    I am glad that I could help. If you have any questions, during the transition process, do not hesitate to contact us.

    All the best,

    Stefan
    the Telerik team

    SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

Back to Top