Disable maximize option for RadRibbonForm by hitting ALT+Space

3 posts, 0 answers
  1. Ravi Prakash
    Ravi Prakash avatar
    21 posts
    Member since:
    Jan 2010

    Posted 10 Feb 2010 Link to this post

    Dear friends,

    I am getting irritated and frustrated as i am not getting an answer..please tell me whether it is possible or not...?

     if we remove Maximize box for a normal form,By default,we never get maximize option in windows menu while hitting alt+space.
    but in radribbonform,i am getting maximize option in windows menu(by pressing alt+spacebar),i have to get rid of that behavior
    please reply me with a means.

    I am asking above mentioned behavior for RadRibbonForm not for rad form, i am sending you a screen shot please have a quick watch on it.

    i have saw one post about this issue,you mentioned below link,but it describes about only removing titlebar and removing maximize box....if you are not getting my question please reply me back ASAP.


    http://www.telerik.com/help/winforms/form-accessing-radform-elements.html


    Thanks,
    Regards,
    Ravi 
  2. Ravi Prakash
    Ravi Prakash avatar
    21 posts
    Member since:
    Jan 2010

    Posted 10 Feb 2010 Link to this post

    Hi,

         Please check the attached image.

    Thanks & regards
    Ravi
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 16 Feb 2010 Link to this post

    Hello Ravi,

    You can disable the maximize/restore button in RadRibbonForm by using the following code snippet:
    protected override CreateParams CreateParams 
            
                get
                
                    CreateParams cp = base.CreateParams; 
                    cp.Style &= ~0x10000; 
                    return cp; 
                
            }

    You can place this code in your form that inherits from RadRibbonForm class. I hope this helps.

    Regards,
    Deyan
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top