Results 1 to 5 of 5

Thread: Check for open form

  1. #1

    Thread Starter
    Junior Member w8taminute's Avatar
    Join Date
    Aug 2006
    Posts
    24

    Check for open form

    Goodmorning my fellow programmers. Well I have ran into something I have never had to do, check to see if a form is open. It seems so easy that I am shy about even posting it. My form nam is frmToday and I just want to check if it is open or not.

    Thanks

  2. #2
    Hyperactive Member The_Duck's Avatar
    Join Date
    May 2005
    Location
    Leamington, UK
    Posts
    351

    Re: Check for open form

    Are you using .net 2.0

    If so you might want to take a look at the My.Application.OpenForms namespace!

    Regards,

    Darren

  3. #3
    Addicted Member Gameunreal's Avatar
    Join Date
    Jun 2006
    Location
    gone fishing
    Posts
    249

    Re: Check for open form

    ...i wonder how many people here actually check on msdn before asking at the forums...
    -=PATRICK=-
    Using Visual Basic .NET 2005


    If you found a post useful then please Rate it!



    Hidden DOS secret: add BUGS=OFF to your CONFIG.SYS
    A program is a device used to convert data into error messages.
    Programmer's Drinking Song: 99 programming bugs in the code/99 programing bugs/Fix one bug/compile it again/now there's 100 bugs in the code! (repeat until bugs==0)
    All wiyht. Rho sritched mg kegtops awound?

  4. #4

    Thread Starter
    Junior Member w8taminute's Avatar
    Join Date
    Aug 2006
    Posts
    24

    Re: Check for open form

    Quote Originally Posted by Gameunreal
    ...i wonder how many people here actually check on msdn before asking at the forums...
    I did check but it was a little unclear.

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

    Re: Check for open form

    I'm not sure what you searched for but I searched for "open forms visual basic" (without quotes) and the first match had a code example for getting the title of each open form and a link to a topic named "How to: Access All Open Forms of an Application.".
    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

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