Form.WindowState from code in RadRibbonForm

4 posts, 0 answers
  1. Dracus
    Dracus avatar
    3 posts
    Member since:
    Jul 2006

    Posted 26 May 2015 Link to this post

    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

  2. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 27 May 2015 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dracus
    Dracus avatar
    3 posts
    Member since:
    Jul 2006

    Posted 27 May 2015 in reply to Dess Link to this post

    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

  5. Dracus
    Dracus avatar
    3 posts
    Member since:
    Jul 2006

    Posted 27 May 2015 in reply to Dess Link to this post

    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

Back to Top