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

Forms not maximized on Windows 7

4 Answers 86 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Joris
Top achievements
Rank 1
Joris asked on 05 Nov 2010, 02:57 PM
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()

4 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 05 Nov 2010, 03:13 PM
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
0
Toon
Top achievements
Rank 1
answered on 05 Nov 2010, 03:22 PM
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
0
Richard Slade
Top achievements
Rank 2
answered on 05 Nov 2010, 03:27 PM
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
0
Richard Slade
Top achievements
Rank 2
answered on 10 Nov 2010, 08:39 AM
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
Tags
Dock
Asked by
Joris
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Toon
Top achievements
Rank 1
Share this question
or