Subject: PictureBox in MDI Form Pls Help!
Posted By: hamidawan Post Date: 3/22/2006 7:37:41 AM
I have an MDI application. I can't change backcolor of my MDI form, though in Property eindow, it looks changed but in reality the color remains same. Can someone tell me how can I change my MDIContainer form's back color?

When I place a Picture Box with Dock property set to Fill on an MDI from, and then click a menu item to open a child form, the child form opens but it doesn't display, but goes behind the PictureBox. How can I show my child forms?
The same is the case for Flash Movie object (as picturebox).

Regards



Reply By: rajessnit@gmail.com Reply Date: 10/2/2006 12:27:55 AM
Hello Hamidawan,
 This is solution of ur 1st problem to set Backcolor of MDI.
===========================================================
'Call the method that changes the background color.
    Private Sub SetBackGroundColorOfMDIForm() '' setting back color of mdi
        Dim ctl As Control
               ' Loop through controls,  
        ' looking for controls of MdiClient type.
        For Each ctl In Me.Controls
            If TypeOf (ctl) Is MdiClient Then
                ' If the control is the correct type,
                ' change the color.
                ctl.BackColor = System.Drawing.Color.PaleGreen
                ' ctl.Font = myFontDialog.Font
            End If
        Next

    End Sub
===========================================================

With thanks
rajesh,
India
Reply By: rajessnit@gmail.com Reply Date: 10/10/2006 10:33:36 AM
Hello Hamidawan,
  one possible soln is to use background image in Mdi.
Let me know is this usefulfor u or not

rajesh

With thanks
rajesh,
India

Go to topic 48454

Return to index page 152
Return to index page 151
Return to index page 150
Return to index page 149
Return to index page 148
Return to index page 147
Return to index page 146
Return to index page 145
Return to index page 144
Return to index page 143