Rounded curve winforms

6 posts, 0 answers
  1. suk
    suk avatar
    10 posts
    Member since:
    Mar 2008

    Posted 17 Mar 2008 Link to this post

    Dear All,
                 I am new to telerik. So I am very much keen to learn how to build window forms which have round curves. I want to build the one like the have provided with the Rad Controls for Winform in the program file the dark green color. Is there any step by step guidance how to achieve up to that quality and standard. Thanks.
  2. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 18 Mar 2008 Link to this post

    Hi suk,

    Thank you for contacting me.

    For more information on how to make a Rounded Rectangle Form you could read the following KB Article that covers implementing a chrome window.  

    The best way to understand how our Quick Start Framework application functions is to review its source files in our Code Library section. You can find them at the link below: 

    http://www.telerik.com/community/code-library/submission/b311D-batccc.aspx.

    I hope this was helpful. If you have any additional questions do not hesitate to contact me again.

    Regards,
    Martin Vasilev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. suk
    suk avatar
    10 posts
    Member since:
    Mar 2008

    Posted 18 Mar 2008 Link to this post

    Dear Martin,
                       I have downloaded the codes. But when I try to run I get this error Error 22 The type or namespace name 'RadControlSpy' does not exist in the namespace 'Telerik.WinControls' (are you missing an assembly reference?) C:\Documents and Settings\test1\Desktop\067408_QSF\QSF\QuickStart\ManageThemes.cs 11 27 QuickStart and asloError 32 Metadata file 'C:\Documents and Settings\test1\Desktop\067408_QSF\QSF\QuickStart\bin\QuickStart.dll' could not be found TelerikQSF. What basically I want to learn how to build the round curve forms and also how the minimize,maximize and close button is implemented. Thanks.

  5. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 19 Mar 2008 Link to this post

    Hello suk,

    Thank you for getting back to me.

    I apologize for the issues that you have had with our Quick Start Framework example. The reason for these issues is the fact that the example is built on top of the Q2 2007 version of RadControls. I have just updated the solution to support Q3 2007 SP1 and you could find it at the same location.

    To create a form with some type of shape you should use the ShapedForm class:

    1. Inherit your form from ShapedForm. Notice, you have to add a reference to Telerik.WinControls.UI in your project.
    2. Set the Shape property of your form to a shape that fits your needs. For example, you could choose a RoundRectShape. Visual Studio will create an instance of a rounded rectangle shape. You can change its radius.
    3. Drop a RadTitleBar control to the form and dock it to the top.
    4. You could create your own theme for RadTitleBar using the Telerik Visual Style Builder.

    The minimize, maximize and close buttons are implemented as pictures. You could change them when you are creating your theme for the RadTitleBar for all of their states. 

    If you need additional assistance, do not hesitate to contact me.

    Kind regards,

    Martin Vasilev
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center
  6. suk
    suk avatar
    10 posts
    Member since:
    Mar 2008

    Posted 19 Mar 2008 Link to this post

    Dear Martin,
                       I have downloaded but now I get this error when I run I get this error Could not find file 'C:\Documents and Settings\test\Desktop\079784_QSF\QSF\TelerikQSF\bin\QuickStart.xml'. Another thing is that how to create my own shape ? What is the design tool for that ? Is there any shape builder ?
  7. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 20 Mar 2008 Link to this post

    Hello,

    Thank you for writing.

    I am sorry for the issue that you have had when you tried to run our Quick Start Framework example. It was because QuckStart.xml file was missing. I have just added it and you could download and try the solution again.

    To create custom shape you could use Telerik's CustomShape control. Find it at your RadControls Toolbox and drop it into your form. The Visual Studio will create a new instance of CustomShape and you could edit it by using Custom Shape Editor. To start the editor, click the smart tag and choose "Edit Points". Please find some examples of shapes in our "RadControls for Winforms Examples" application. When you start it, navigate to "RadControls Integration\Shape Editor".

    Do not hesitate to contact me if you have any other questions.

    Greetings,
    Martin Vasilev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for WinForms is Visual Studio 2017 Ready