title: Get focused form name
body: <p>At any given time my application has two open forms, I need to get the form name that is currently being focused for my other code to run. I tried using the code below but it's not working.</p>
  
  <pre><code>if Form1.focused = true then
     'process 
  elseif form2.focused = true then
     'process
  end if 
  </code></pre>