首先 我动态的生成了一组picManger
然后使每个picturebox的contextmenustrip绑定到contextmenustrip
然后在contextmenustrip中增加了一个删除
当我点击哪张图片的右键删除的时候,怎么知道要删除哪张呢
怎么传进去的呢
struct PicManger
{
public PictureBox pb;//图片
public int tpbh;//图片编号
}
private void toolStripMenuItem1_Click(object sender, EventArgs e)//删除
{}
然后使每个picturebox的contextmenustrip绑定到contextmenustrip
然后在contextmenustrip中增加了一个删除
当我点击哪张图片的右键删除的时候,怎么知道要删除哪张呢
怎么传进去的呢
struct PicManger
{
public PictureBox pb;//图片
public int tpbh;//图片编号
}
private void toolStripMenuItem1_Click(object sender, EventArgs e)//删除
{}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货