title: C# how to show a form at a specific mouse position on the screen?
body: <p>I have two Forms, my main form is Form1 and my secondary form shown on demand as a dialog is Form2.
  Now if I call Form2 it shows always up in the upper left corner on my screen. First time I thought my form isn't there at all, but then I saw it hanging in the upper screen corner. I would like to show my form at the current mouse position where the user clicks a context menu to show up the modal dialog.
  I have already tried different things and searched for code samples. But I found nothing besides thousand of different codes on how to get the actual mouse position in different ways which I already know. But this position is anyway always relative to the screen, the main form, the control or whatever the current context is. Here my code (the desktop positioning which I also tried doesn't work and center-to-screen centers the form only, so I left the property to Windows.Default.Position):</p>
  
  <pre><code>        Form2 frm2 = new Form2();
          frm2.textBox1.Text = listView1.ToString();
          frm2.textBox1.Tag = RenameFile;
          DialogResult dlgres=frm2.ShowDialog(this);
          frm2.SetDesktopLocation(Cursor.Position.X, Cursor.Position.Y);
  </code></pre>