title: Set Cursor Focus
body: <p>I have a Function.  In a part of the logic within this Function (Function1) I have a call to Function2(x)</p>
  
  <p>This passes variable x into this new function (Function2) and opens a form.  (frmexample)</p>
  
  <p>How can I set the cursor to load in a particular text box?  At the moment by default when the form loads, the cursor is in the first textbox on the form.</p>
  
  <p>I've tried:</p>
  
  <pre><code>frmexample.txtputcursorinthisbox.SetFocus
  </code></pre>
  
  <p>Which doesn't work, the tab index is 31, perhaps there is a way to use this information to correct the cursors placement?</p>
  
  <p>Thanks!</p>