How to remove the border of RadFrom

1 Answer 46 Views
Form
Kumaran
Top achievements
Rank 1
Iron
Kumaran asked on 17 Sep 2021, 10:22 AM

Hi,

I have a RadForm. It has a borderwidth of 4,1,4,4. When I inspected, found that there's a FormImageBorderPrimitive and it has a width of 3,0,3,3. I tried changing the visibility of this element but still the border is there. Is there to remove this border and have only border width of 1,1,1,1

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Todor Vyagov
Telerik team
answered on 17 Sep 2021, 11:25 AM

Hello, Kumaran,

You can set the Visibility property of the RadFormElement.ImageBorder to ElementVisibility.Collapsed in the constructor of the form.

this.FormElement.ImageBorder.Visibility = ElementVisibility.Collapsed;

Here is the result on my side. I am setting the background and border colors of the form, so we can see clearly the inner(image) border bounds.


Here is the result with no custom colors applied:

More information about the image border of RadForm is available here: https://docs.telerik.com/devtools/winforms/controls/forms-and-dialogs/form/using-the-formimageborderprimitive

Have in mind that the resize cursor of the form appears only when the mouse is over the border. If you change the border from 4,1,4,4 to 1,1,1,1 by collapsing the image border it will quite be a bit harder to resize the form.

I hope this will help. Let me know if you need further assistance.

Regards,
Todor Vyagov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Form
Asked by
Kumaran
Top achievements
Rank 1
Iron
Answers by
Todor Vyagov
Telerik team
Share this question
or