Results 1 to 3 of 3

Thread: Form On Top of Form

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2003
    Location
    Binghamton, New York
    Posts
    11

    Form On Top of Form

    In my program I have a child form with a textbox that is displayed when a MenuItem is clicked. I want it to display on top of the parent form, but what is happening is that you can see the parent form right through it, making the textbox impossible to read. Both forms have the Opacity set to 100%. I fiddled with setting the Topmost property but that didn't do it.
    How can I display a child form on top of a parent form without taking down the parent?

  2. #2
    Lively Member
    Join Date
    Aug 2003
    Location
    When?!?!
    Posts
    108
    VB Code:
    1. Dim f As New SomeForm
    2. Me.Enabled = False
    3. f.ShowDialog(Me)
    DannyJoumaa
    Advanced VB6 Programmer
    Intermediate-Advanced VB .NET Programmer
    Intermediate C# Programmer
    Intermediate Win32 Developer
    Beginner Mac OS X Developer
    Contact: [email protected]

    Favorite Sayings:
    "Every time you open your mouth, you prove your an idiot."
    "God is a programmer. Satan is a bug. Life is debugging."

  3. #3
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    You may also want to check that you haven't fiddled with the TransparencyKey property of the Forms.

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