ListBox中可以这样使用:假设窗体中有List1、List2,可以选中List1的某一行后,再选中List2中的某一行,这时List1刚才选中的那一行仍处于选中状态,
而ListView中:假设窗体中有ListView1、ListView2,选中ListView1的某一行后,再选中ListView2中的某一行,这时ListView1刚才选中的那一行却不处于选中状态
问:怎样使ListView1、ListView2中的某一行同时处于选中状态

解决方案 »

  1.   

    在 http://www.mndsoft.com 中源码搜索栏中输入"ListBox",然后搜速一下看看,实在找不到,请留言给网站,一般会给你帮助的.
      

  2.   

    listview1.hideselection=false
    listview2.hideselection=false
      

  3.   

    DoEvents
    ListView1.ListItems.Add , , ListView3.SelectedItem.SubItems.Item(0).Text
    ListView1.ListItems.Add , , ListView3.SelectedItem.SubItems.Item(1).Text
    ListView3.ListItems.Remove (ListView3.SelectedItem.Index)
    这有什么错误,正确的写法应该是什么