ContextMenuStrip only shows up at the top left corner of my screen

  • Thread starter Thread starter Markus Schuhmacher
  • Start date Start date
M

Markus Schuhmacher

Guest
I just dont get it. All I want is that the context menu shows up at the current mouse location when clicking on a button. But whatever I do (I already tried a lot) this menu does ignore my orders and only appears at the damn left corner of my screen (not the form) (I guess this is position 0, 0).

So... Button --> click --> menu

namespace firstTest
{
public partial class frmMain : Form
{
public frmMain()
{
InitializeComponent();
}

private void btnDoEncrypt_Click(object sender, EventArgs e)
{
ctxDoEncrypt.Show(Cursor.Position);
}
}
}

Continue reading...
 
Back
Top