private void Renew() { listView1.Items.Clear(); String IntallPro = hostInstance.GetInstalledPrograms(); string[] fields = IntallPro.Split(new string[] { Environment.NewLine }, StringSplitOptions.None); //MessageBox.Show(IntallPro); foreach (string field in fields) { if (field != string.Empty) { string[] IntallProItem = field.Split(new string[] { "|*|" }, StringSplitOptions.None); ListViewItem list = new ListViewItem(IntallProItem[0]); for (int i = 1; i < IntallProItem.Length; i++) { list.SubItems.Add(IntallProItem[i]); } listView1.Items.Add(list); } } }