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

Rounded curve winforms

5 Answers 165 Views
Form
This is a migrated thread and some comments may be shown as answers.
suk
Top achievements
Rank 1
suk asked on 17 Mar 2008, 05:14 PM
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.

5 Answers, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 18 Mar 2008, 01:41 PM
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
0
suk
Top achievements
Rank 1
answered on 18 Mar 2008, 04:01 PM
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.

0
Martin Vasilev
Telerik team
answered on 19 Mar 2008, 12:14 PM
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
0
suk
Top achievements
Rank 1
answered on 19 Mar 2008, 03:52 PM
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 ?
0
Martin Vasilev
Telerik team
answered on 20 Mar 2008, 01:55 PM
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
Tags
Form
Asked by
suk
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
suk
Top achievements
Rank 1
Share this question
or