It possible to made winform round button, and maybe whit image inside?
1 Answer, 1 is accepted
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:
Create the button. Through the smart tag in the designer, select Edit UI elements. A window will open (Element hierarchy editor).
In the treeview, select Telerik.WinControls.UI.RadButtonElement, then in the property browser find Shape and select the desired shape. Close the editor.
A new object will be generated (say roundRectShape1), which you'll see in the designer. Select it and customize it as you wish.
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);