Results 1 to 3 of 3

Thread: photoshop-type toolwindow hover - 1-liner in vb6, looking for vb.net method

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    5

    photoshop-type toolwindow hover - 1-liner in vb6, looking for vb.net method

    hi all. this is my first time posting on this board.

    using vb6 it was an easy job to call a form that would hover 'above' your main form, but not above anything else, and let you work on your main form at the same time.

    in vb6 (and prior perhaps) it was accomplished with a call of the form:
    generalsettings.Show , main

    i would like to know how this is done using vb.net. any suggestions are appreciated.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You can set the Owner property of the child form to get the same effect:
    VB Code:
    1. 'VB6
    2.     Dim f As New Form1
    3.     f.Show , Me
    4.  
    5. 'VB.NET
    6.         Dim f As New Form4
    7.         f.Owner = Me
    8.         f.Show()

    Both code examples assume they are being ran from the form that you want as the parent otherwise replace Me with a reference to the parent form.

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    5
    thank you sir...

    that was exactly what i was looking for.

    the help you've provided in this matter is much appreciated.

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