form1:
listbox
a
b
c
d
e
f
g
btndelete  btngotoform2(string listbox.item)
---------------------------------------------
        public void bindDealer()
        {
            ArrayList al = new ArrayList();
            al = db.GetDealer();
            listBox1.Items.Clear();
            foreach (string s in al)
            {
                listBox1.Items.Add(s);
            }
        }
        public void deletelist(string str1)
        {   
            db.DeleteDealer(str1);
            bindDealer();
        }
  private void btndelete_Click(object sender, EventArgs e)
        {
            string s = listBox1.SelectedItem.ToString();
            db.DeleteDealer(s);
            bindDealer();
        }
在FORM1中 可以根据需要 删除LISTBOX中的值,并刷新
--------------------------------------------
form2
            if (MsgBoxResult == DialogResult.Yes)
            {
                db.DeleteDealer(dealername);
                DealerList dl = new DealerList();
                dl.deletelist(dealername);
                MessageBox.Show("删除成功!");
                this.Close();
            }
在FORM2这里 删除之后 LISTBOX1 并不刷新 需要关闭 在打开 才刷新 为什么呢? 是不是要重新加载FORM1 还是其他的?
谢谢各位前辈了!小弟在线等!