Results 1 to 2 of 2

Thread: GET current FORM NAME, . . .

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2001
    Location
    Spain
    Posts
    21

    Arrow GET current FORM NAME, . . .

    I want to get the name of the:
    - current project
    - current form
    - current module
    - current function
    - current procedure or method.
    where I am working

    How can I do to get it?

    I think this can be done with API


    thanks and regards

  2. #2
    Matthew Gates
    Guest
    To get the current form or application that has the focus, you can use the GetForegroundWindow or GetActiveWindow API functions.


    VB Code:
    1. Private Declare Function GetActiveWindow Lib "user32" () As Long
    2.  
    3. Private Declare Function GetForegroundWindow Lib "user32" () As Long

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