PDA

Click to See Complete Forum and Search --> : GET current FORM NAME, . . .


tel
Aug 6th, 2001, 03:36 AM
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

Matthew Gates
Aug 6th, 2001, 11:34 AM
To get the current form or application that has the focus, you can use the GetForegroundWindow or GetActiveWindow API functions.


Private Declare Function GetActiveWindow Lib "user32" () As Long

Private Declare Function GetForegroundWindow Lib "user32" () As Long