Rounded winform Button

2 posts, 0 answers
  1. Daniel Gonzalez
    Daniel Gonzalez avatar
    1 posts
    Member since:
    Dec 2006

    Posted 05 Jul 2007 Link to this post

    It possible to made winform round button, and maybe whit image inside?
  2. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 06 Jul 2007 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top