我是直接用数据库查询做的,希望对你有帮助
table1和table2都有field1字段
在ListBox1中
select * from table1 where table1.field1 not in (select field1 from table2)在ListBox2中
select * from table1 where table1.field1 in (select field1 from table2)