Results 1 to 2 of 2

Thread: Is there such a function ....

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    344
    Basically all forms, i got a timer going that says if form1 is visible then stayontop, but i want it to be if any other forms on visible as well then dont stayontop. Is there a all form function?

    if all forms.visible then
    'Sit on your ass
    else
    stayontop me
    end if

    Got me?
    -RaY
    VB .Net 2010 (Ultimate)

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    You could create your own function (or subroutine) that scans the global object (collection) "forms"

    set boolean=false
    for i=1 to Forms.Count - 1 To 0 Step -1
    if forms(i).visible= false then boolean = true
    Next

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