Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 22nd, 2006, 08:37 AM
Registered User
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default PictureBox in MDI Form Pls Help!

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



 
Old October 2nd, 2006, 12:27 AM
Authorized User
 
Join Date: Oct 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old October 10th, 2006, 10:33 AM
Authorized User
 
Join Date: Oct 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Controlling MDI child form from MDI parent panel LuxCoder Pro Visual Basic 2005 1 May 25th, 2007 12:20 PM
Controlling MDI child form from MDI parent panel LuxCoder VB.NET 2002/2003 Basics 7 April 11th, 2007 02:38 PM
Controlling MDI child form from MDI parent panel LuxCoder VB How-To 1 April 9th, 2007 03:25 PM
Controlling MDI child form from MDI parent panel LuxCoder Visual Basic 2005 Basics 2 April 9th, 2007 03:24 PM
picturebox in parent mdi form MAKO C# 2 November 3rd, 2006 01:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.