Forms not maximized on Windows 7

5 posts, 0 answers
  1. Joris
    Joris avatar
    5 posts
    Member since:
    Dec 2009

    Posted 05 Nov 2010 Link to this post

    Hello,

    I'm using the raddock in my mdi application and it works great.
    However, when I run it on windows 7 I got a side effect: I've got a main form and several other forms that I load when I click on a button in the main form. When I load my form with the code below my form doesn't load maximized. When I change the property 'windowstate' on the form frmDemo to maximized it's showed maximized but I would like to do this by code..

    On XP the application works without any problems.

    So my question now, is it a programmer fault or a windows 7 telerik bug?

    Greetz,
    Joris

    Dim frmDemo As New FrmDemo 
    frmDemo .MdiParent = Me 
    frmDemo .StartPosition = FormStartPosition.CenterParent 
    frmDemo .WindowState = FormWindowState.Maximized 
    frmDemo .Show()

  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 05 Nov 2010 Link to this post

    Hi,

    I've just tried the following code (where Form1 is the main form, and Form2 is the MDIChild) and everything is maximized.
    I am running the latest version of the telerik controls (2010 Q2 914) and Windows 7 64bit in this case.

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.WindowState = FormWindowState.Maximized
        Me.IsMdiContainer = True
        Me.RadDock1.AutoDetectMdiChildren = True
        Dim frmDemo As New Form2()
        frmDemo.MdiParent = Me
        frmDemo.StartPosition = FormStartPosition.CenterParent
        frmDemo.WindowState = FormWindowState.Maximized
        frmDemo.Show()
    End Sub

    The Form2 is lanched as a tabbed DockWindow as I would expect. And indeed these lines
    frmDemo.StartPosition = FormStartPosition.CenterParent
    frmDemo.WindowState = FormWindowState.Maximized
    make no difference in this case.

    Is this what you mean?
    Let me know if you need further help
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dirk Jacobs
    Dirk Jacobs avatar
    5 posts
    Member since:
    Oct 2009

    Posted 05 Nov 2010 Link to this post

    Thanks for the quick reply.

    I'm using telerik controls 2010 Q1 so maybe it's that.
    I will update my telerik controls and let you know if my problem is fixed.

    Thanks in advance
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 05 Nov 2010 Link to this post

    Ok Dirk. 

    For reference, you can see what has been released in the version from your current one to now here

    Let me know if you get it sorted or need further help
    Richard
  6. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 10 Nov 2010 Link to this post

    Hi Dirk,

    How did you get on with the upgrade? If the posts I provided helped, please mark as answer so others can find the solution too. If I can be of any more help, just let me know.

    Thanks
    Richard
Back to Top
UI for WinForms is Visual Studio 2017 Ready