Results 1 to 2 of 2

Thread: [RESOLVED] MDI Child and Parent problems???

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    343

    Resolved [RESOLVED] MDI Child and Parent problems???

    Ok. I have two problems.
    1. I want the Child form to have an opacity of .7 when it loses focus. But it doesn't seem to work. Any reason why?
    2. Whenever my child has focus, the menubar items disappear. But when they don't have focus they are there. Any reason why this would happen? [resolved]

    My program makes new forms when you hit "New".
    Code to make a new form:
    VB Code:
    1. Dim ChildForm As New Form1
    2.         ChildForm.MdiParent = Me
    3.         m_ChildFormNumber += 1
    4.         ChildForm.Text = "New Document " & m_ChildFormNumber
    5.         ChildForm.Show()
    Last edited by bluehairman; Feb 14th, 2007 at 10:17 PM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [RESOLVED] MDI Child and Parent problems???

    It is only possible to have transparent top-level windows. When you make a form an MDI child it is no longer a top-level window, but a child control of its MDI parent. The only way to make an MDI child transparent is to make its parent transparent, which is obviously not what you want.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width