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

Disable maximize option for RadRibbonForm by hitting ALT+Space

2 Answers 91 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Ravi Prakash
Top achievements
Rank 1
Ravi Prakash asked on 11 Feb 2010, 04:22 AM
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 Answers, 1 is accepted

Sort by
0
Ravi Prakash
Top achievements
Rank 1
answered on 11 Feb 2010, 04:38 AM
Hi,

     Please check the attached image.

Thanks & regards
Ravi
0
Deyan
Telerik team
answered on 16 Feb 2010, 07:36 AM
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.
Tags
RibbonBar
Asked by
Ravi Prakash
Top achievements
Rank 1
Answers by
Ravi Prakash
Top achievements
Rank 1
Deyan
Telerik team
Share this question
or