C# ListView Remove Items -
I would like to delete the item already because it shows only one item when I click on it, but here, the item Number 1 is not present and I do not know why I can solve it? Thank you. log: I think you should try try this: Private Zero DEXTarget_CheckedChanged (Object Sender, EventArgs E) {Log (marked "DEX (TMAPI) target"); ListView1.Items.RemoveAt (-1); PS3.ChangeAPI (SelectAPI.TargetManager); Var.API = true; } Private Zero CEXTarget_CheckedChanged (Object Sender, EventArgs E) {log (marked "CEX (CCAPI) target"); PS3.ChangeAPI (SelectAPI.ControlConsole); Var.API = False; }
Private zero log (string text) {Var.lst = this.listView1.Items.Add (DateTime.Now.ToString ( "DD / MM / OR HH: MM")); Var.lst.SubItems.Add (text); }
list view starting with item index
0 and
Calculate -1 .
ListView
listView1.Items.RemoveAt (listView1.Items .Count - 1);
Comments
Post a Comment