Confused about StrataFlix Sample MDI interface


Author
Message
Sam Tenney
Sam Tenney
StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)
Group: StrataFrame Users
Posts: 70, Visits: 3.5K
The StrataFlix Sample documentation indicates that it uses an MDI interface, but I am confused by a couple of properties of the FlixMain form.  The property named "IsMdiContainer" is false and "ShowInTaskbar" is true.  I expected "IsMdiContainer" to be true and I am confused by the meaning of "ShowInTaskbar".  What properties actually cause a form to be an MDI form?

Do most developers prefer MDI forms?

Sam Tenney
Replies
Teddy Jensen
Teddy Jensen
StrataFrame User (152 reputation)StrataFrame User (152 reputation)StrataFrame User (152 reputation)StrataFrame User (152 reputation)StrataFrame User (152 reputation)StrataFrame User (152 reputation)StrataFrame User (152 reputation)StrataFrame User (152 reputation)StrataFrame User (152 reputation)
Group: StrataFrame Users
Posts: 52, Visits: 8K
Hi Sam,

The mainform is not set as mdicontainer in the properties, but it implements a MdiClient control in code.

In the region private fields:

Private WithEvents _MDIClient As New MdiClient()

And then:



Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)

MyBase.OnLoad(e)

'-- Set the MDI backcolor to white

_MDIClient.BackColor = Drawing.Color.White

'-- Add the MDI

Me.Controls.Add(_MDIClient)

End Sub

This way you can control the mdi better, setting the back color and more.

/Teddy
Sam Tenney
Sam Tenney
StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)
Group: StrataFrame Users
Posts: 70, Visits: 3.5K
Thanks Teddy,

That was the information I was looking for.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search