write2jey

write2jey

  • NA
  • 69
  • 0

TabPage Component Duplication

Feb 8 2005 2:16 PM
I've a TabControl, with multiple TabPages. Each TabPage has a ListView. The ListView displays files from a remote system. So, each TabPage will contain different files/folders from various remote systems in the ListView. I want to duplicate the Attributes of this ListView to all the TabPages. I'm trying to solve this problem with Inhertiance, but I'm running into problems such as the ListView events not working and such..... I can't call the constructor with "new", because it's creates a compeletely new ListView object and I've to set all the properties of it and EVENTS as well... That's why I was trying to Implement ICloneable......... I was also suggested to make the ListView.Parent = TabControl.SelectedTab in the TabSelelctedIndexChanged event handler and switch the ListView and Update the Contents of the ListView. In that, I am pretty much stuck with "preserving the state/data" of each ListView and Retrieving them accordingly. Is there any way out? JJ