j_sen21

j_sen21

  • NA
  • 57
  • 0

context menu strip for a button

Nov 4 2007 1:14 PM

Is there a way when clicking a button, menu pops up with new buttons in a menu strrip.

I tried below and the event doesnt know ackowledge anything but tostring, getype and hash and equals.

thanks

 

private void btnBusiness_Click(object sender, EventArgs e)

{

//UpdateAttributes();

if (e.Button == MouseButtons.Left)

{

this.contextMenuStrip1.Show(this.btnBusiness, e.Location);

}

 

}


Answers (1)