Results 1 to 4 of 4

Thread: [RESOLVED] [2005] Floating painel

  1. #1

    Thread Starter
    Hyperactive Member gooden's Avatar
    Join Date
    Dec 2006
    Location
    Portugal
    Posts
    274

    Resolved [RESOLVED] [2005] Floating painel

    Good morning in first place

    Well i have a little question to you guys.

    I want to make a Floating Panel like this....

    so my logic is the next:

    I create a Form that is called Form Parent.

    Then i create other form that is going to be like a tool Form that is going to be floating In front of form parent... i put on that form the proprieti of TOPMOST so it will be Top of parent... Until here all is ok... now my problem is that when i minimize my app the form that is top most Stay In front of other windows :|

    is there any way of resolving this?? or i can make this kind of panels other way?

    PS: image atached with example :P
    Attached Images Attached Images  


    The Future Is Always The Way To Live The Life

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,416

    Re: [2005] Floating painel

    in your parent form where you load the child form:

    vb Code:
    1. Form2.TopLevel = False
    2. Form2.Parent = Me
    3. Form2.Show()

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

    Re: [2005] Floating painel

    You don't set the TopMost property. That is intended to create windows that are always in front of every other window, like the Task Manager. What you want is a modeless dialogue, otherwise known as an owned form. There are several ways to create an owned form but the easiest is instead of doing this:
    vb.net Code:
    1. myForm.Show()
    you do this:
    vb.net Code:
    1. myForm.Show(Me)
    The dialogue form is now owned by Me, so it will always stay on top of Me without preventing access like a modal dialogue. It will also minimise, restore and close with Me.
    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

  4. #4

    Thread Starter
    Hyperactive Member gooden's Avatar
    Join Date
    Dec 2006
    Location
    Portugal
    Posts
    274

    Re: [2005] Floating painel

    OMG so simple o.0

    LOOOOL

    Okok :P

    TY Rated the 2 posts


    The Future Is Always The Way To Live The Life

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