CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: IsLoaded

  1. #1
    Join Date
    Sep 1999
    Location
    Leeds U.K. (Proud to be Sheffield Born)
    Posts
    202

    IsLoaded

    Hi. Thanks for reading.
    I am writing a VB 6 app which sits in the systray. I have a cute icon and everything, no problem, tip text and right-click menu. However, I wish to have a left-click on this icon bring the form(s) to to the fore, (and show them if minimised). This itself is no problem for the main application form, but when I have more than one form loaded I encounter all sorts of difficulties with modality and zorder. I've had a look and am basically short of an "IsLoaded" function for the app's forms, so that I can show them in the right order. Clear..?
    How can I establish whether or not an instance of a particular form is loaded?

    Cheers,

    surrendermonkey



  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: IsLoaded

    take this as a starting point

    Dim frm as VB.Form
    for Each frm In VB.Forms
    If frm.Name = "Form1" then
    MsgBox "loaded"
    End If
    next frm





  3. #3
    Join Date
    Sep 1999
    Location
    Leeds U.K. (Proud to be Sheffield Born)
    Posts
    202

    Re: IsLoaded

    Nice One.
    Thankyou.


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

Featured