//添加QQ邮箱功能 private void button6_Click(object sender, EventArgs e) { QQ q = new QQ(); if (q.ShowDialog() == DialogResult.OK && q.dic.Count != 0) { for (int i = 0; i < q.dic.Count; i++) { string e_mail = q.dic[int.Parse(q.qq) + i]; if (!t_to.Items.Contains(e_mail)) { t_to.Items.Add(e_mail); } } } }