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

Form.WindowState from code in RadRibbonForm

3 Answers 72 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Dracus
Top achievements
Rank 1
Dracus asked on 26 May 2015, 11:50 AM

Hi,

 I am trying to open form maximized depending on DPI settings.

Unfortunately when I try to do that from code-behind (this is Windows Desktop application) I do not have WindowState available.
Form that I use is RadRibbonForm.

Is it possible to set from code how form will be opened?

Thanks,
Oliver

3 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 27 May 2015, 11:07 AM
Hello Oliver,

Thank you for writing.

I would like to note that RadRibbonForm offers WindowState property in order to specify if it is minimized/ maximized/ normal. Here is my sample code snippet which result is illustrated on the attached sample video (drag and drop over the browser to play it):
private void radButton1_Click(object sender, EventArgs e)
{
    RadRibbonForm1 ribbonForm = new RadRibbonForm1();
    ribbonForm.WindowState = FormWindowState.Maximized;
    ribbonForm.Show();
}

Is it suitable for your case? If not, it would be greatly appreciated if you can provide more details about the exact goal that you are trying to achieve. Thus, we would be able to assist you further.

I am looking forward to your reply.
 
Regards,
Dess
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Dracus
Top achievements
Rank 1
answered on 27 May 2015, 01:25 PM

Hi,

 this is what I would expect but please check attached screenshot.
You can see that I do not see WindowState available.

Test code is simple:

Dim frm As Telerik.WinControls.UI.RadRibbonForm = New Telerik.WinControls.UI.RadRibbonForm
frm.

 Something wrong with my computer?

Btw. when I click in Visual Studio 2013 on form properties I see WindowState in Properties box.

 Thanks,
Oliver

0
Dracus
Top achievements
Rank 1
answered on 27 May 2015, 01:30 PM

Please forget my question - AutoComplete did not work like I wanted :(.

If I type Wind I'll not see WindowState but when I typed full WindowState it was visible.

Sorry for this and thanks for quick reply,
Oliver

Tags
RibbonBar
Asked by
Dracus
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Dracus
Top achievements
Rank 1
Share this question
or