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...
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...