title: How To Make public sub form ShowDialog
body: <p>How To Make public sub form ShowDialog</p>
  
  <p>I have Module and i want to put a code that i can use it in all project to open forms .</p>
  
  <p>I have Tried to put this code in Module Put Not Working </p>
  
  <pre><code>Public Sub OpenForm(ByVal Frm As Form)
      Frm = New Frm()
      frm.ShowDialog()
  End Sub
  </code></pre>
  
  <p>The Error Is " Type 'Frm' is not defined "</p>
  
  <p>Kind Regards And Thanks For Help
  Salem</p>