Tweaking a RadForm - icon/resize/minimize/maximize

3 posts, 0 answers
  1. Lou
    Lou avatar
    61 posts
    Member since:
    Aug 2014

    Posted 10 Mar 2015 Link to this post

    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. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 11 Mar 2015 Link to this post

    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.

     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Lou
    Lou avatar
    61 posts
    Member since:
    Aug 2014

    Posted 11 Mar 2015 in reply to Stefan Link to this post

    Thanks Stefan, I have it all working now.

    -Lou
Back to Top