Hello, Diego,
I don't think it is possible to do this directly. It would be easy to
put it onto some sort of a docked container control, but I guess this is
not what you want.
If the contents are for "display-only", and you do not need any active
controls on the MDI background you might be able to find a way to copy
the image of the Web page to the MDIClient.
I don't know offhand how you would get the image from the web page, but
if you can then you could do something like this:
Private WithEvents mFrame As MdiClient ' MDI Client window frame.
You will need to "find" the MDIClient. Maybe there are better ways, but
this has worked for me:
For Each ctlCurrent As Control In Me.Controls
If (TypeOf ctlCurrent Is MdiClient) Then
mFrame = DirectCast(ctlCurrent, MdiClient)
Exit For
End If
Next ctlCurrent
I have used this in the first pass of the MDI Form's Activate event, but
have recently learned that .Net 2005 provides a "Shown" event that may
be better for this.
Then, use the Paint event of the MDIClient to display the image of your
web page.
Private Sub MDIControl_Paint(ByVal sender As Object, _
ByVal e As PaintEventArgs) _
Handles mFrame.Paint
' Copy the image here using e.Graphics
. . .
End Sub
But again, don't forget the caveat that "The MdiClient ... is not
intended to be used directly from your code." And if you want to
simulate active controls on the MDI background, this will become much
more difficult. There might be better/easier ways to accomplish the
functionality that you want.
Good luck,
Randy