Exposing the ListViewItemCollection from a UserControl

  • Thread starter Thread starter Zoury
  • Start date Start date
Z

Zoury

Hi Folks!

i've made a UserControl that wraps a ListView control (and some others) and
i'd like to expose the Items and Columns properties. The problem is that
these properties Types are provided has embedded class inside the ListView
class .. i mean System.Windows.Forms.ListView.ListViewItemCollection.

so when i expose the property :
//***
public ListView.ListViewItemCollection Items
{
get {return lv.Items;}
}
//***

it works, but i don't have intellisense for this property when i use my
UserControl.

any thoughts ? is my design wrong?

Thanks a lot!
 
Back
Top