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

Rounded winform Button

1 Answer 747 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Daniel Gonzalez
Top achievements
Rank 1
Daniel Gonzalez asked on 05 Jul 2007, 03:47 PM
It possible to made winform round button, and maybe whit image inside?

1 Answer, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 06 Jul 2007, 08:27 AM
Yes, Daniel, it is possible.

You can create a RadButton with all kinds of shapes. There are two ways to achieve this:
  1. Create the button. Through the smart tag in the designer, select Edit UI elements. A window will open (Element hierarchy editor).
     
  2. In the treeview, select Telerik.WinControls.UI.RadButtonElement, then in the property browser find Shape and select the desired shape. Close the editor.
     
  3. A new object will be generated (say roundRectShape1), which you'll see in the designer. Select it and customize it as you wish.
     
  4. Another way to achieve the same goal is to add the following code in the Form1_Load event handler:
     
    radButton1.RootElement.Children[0].Shape = new RoundRectShape(5);
 
Kind regards,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Daniel Gonzalez
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Share this question
or