In my work were using application called Pivotal - eRelationships, it is a CRM app.
In it every user can create list of business objects.
Basically this looks like this:
User select from menu 'Static lists' then he see all available lists, when he select one list it content is displayed. In this example if he choose 'zzzz' he will see all elements on that list.
My job was to create a form that will display details for list items. So if user select something from 'zzzz' list my custom form should show.
I can get ID of selected element, but what I need is the ID of list having that element.
This can't be done normally because of application architecture.
Custom forms are done as dll's. Simple class implementing interface.
So my idea was to get last active window title and than having it I will be able to search for Static List ID in database - this is my only option.
So for testing purposes I would like to create a simple application that will get last active window title.
I know that this isn't the best solution there is, but I think this might work.
Any ideas, suggestions and examples are welcome.