public void LoadDB() { // DataBase=wintop strCon = @"Host=localhost;Protocol=TCP;Port=3306;Pooling=true;Connection Lifetime=30;MAX Pool Size=512;Min Pool Size=50;User id=root;Password=123456;charset=gbk;Allow Zero Datetime=True;"; mySql.strCon = strCon; List <string> listdb = mySql.GetDB(); foreach (string item in listdb) { ListViewItem lvitem = lvRemoteDB.Items.Add(item); lvitem.Tag = item; lvitem.SubItems.Add(item); } }