private void buttonX1_Click(object sender, EventArgs e) { AccountCtr myAccount = new AccountCtr("sfasdfas", "haah", "12342134", listControlView1.Count); myAccount.Name = "accountCtr" + listControlView1.Count; myAccount.Size = new System.Drawing.Size(300, 80); listControlView1.Add(myAccount); listControlView1.Focus(); contextMenuBar1.SetContextMenuEx(myAccount, buttonItem1); }