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

Tweaking a RadForm - icon/resize/minimize/maximize

2 Answers 178 Views
Form
This is a migrated thread and some comments may be shown as answers.
Lou
Top achievements
Rank 1
Lou asked on 10 Mar 2015, 08:27 PM
Hi, could you let me know how to do the following with a RadForm (or point me to some documentation with instructions)?

1. Hide the icon that's shown in the upper left corner
2. Prevent the dialog from being resized by the user
3. Hide the minimize and maximize icons that are shown in the upper right corner

Thanks for your help,

-Lou

2 Answers, 1 is accepted

Sort by
1
Stefan
Telerik team
answered on 11 Mar 2015, 06:49 AM
Hi Lou,

Thank you for writing.

Directly to your questions.

1. Here is how to hide the element responsible for the icon on the left:
this.FormElement.TitleBar.IconPrimitive.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;

2. You can use the FormBorderStyle property and set it to the desired option: https://msdn.microsoft.com/en-us/library/hw8kes41(v=vs.110).aspx. For example:
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;

3. Here are the properties for these buttons:
this.MinimizeBox=false;
this.MaximizeBox=false;

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Lou
Top achievements
Rank 1
answered on 11 Mar 2015, 01:28 PM
Thanks Stefan, I have it all working now.

-Lou
Tags
Form
Asked by
Lou
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Lou
Top achievements
Rank 1
Share this question
or