Click here to Skip to main content
15,915,508 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need Urgent Help With Remoting Pin
Michael Timoney11-Apr-04 15:15
Michael Timoney11-Apr-04 15:15 
GeneralRe: Need Urgent Help With Remoting Pin
leppie11-Apr-04 15:49
leppie11-Apr-04 15:49 
GeneralRe: Need Urgent Help With Remoting Pin
Michael Timoney14-Apr-04 6:16
Michael Timoney14-Apr-04 6:16 
GeneralPS: Need Urgent Help With Remoting Pin
Michael Timoney11-Apr-04 15:25
Michael Timoney11-Apr-04 15:25 
Generalusing inherited listviewitem Pin
Anonymous11-Apr-04 13:41
Anonymous11-Apr-04 13:41 
GeneralRe: using inherited listviewitem Pin
leppie11-Apr-04 15:07
leppie11-Apr-04 15:07 
GeneralRe: using inherited listviewitem Pin
Anonymous12-Apr-04 5:18
Anonymous12-Apr-04 5:18 
GeneralRe: using inherited listviewitem Pin
Heath Stewart12-Apr-04 5:59
protectorHeath Stewart12-Apr-04 5:59 
Anonymous wrote:
The ControlCollection does not allow me to add listviewitems to it.

Of course it won't - that's only for Control instances, which ListViewItems are not.

You could always add your derivative ListViewItems to the base class's Items properties, using base.Items and calling the appropriate actions. Since you hide that member, your Items collection property will be called only when referencing your type by its actual Type (and not ListView), but nothing is preventing you from using the base class's collection property to store the items. After all, your derivative class is still a ListViewItem a la polymorphism.

Search CodeProject. There are some articles that discuss how to do this, as well as some examples I remember seeing on MSDN[^].

 

Microsoft MVP, Visual C#
My Articles
GeneralIcon associated with file type Pin
DrGreen11-Apr-04 10:26
DrGreen11-Apr-04 10:26 
GeneralRe: Icon associated with file type Pin
Anonymous11-Apr-04 13:53
Anonymous11-Apr-04 13:53 
GeneralRe: Icon associated with file type Pin
Anonymous11-Apr-04 13:55
Anonymous11-Apr-04 13:55 
GeneralRe: Icon associated with file type Pin
DrGreen12-Apr-04 3:09
DrGreen12-Apr-04 3:09 
GeneralRe: Icon associated with file type Pin
Heath Stewart12-Apr-04 6:03
protectorHeath Stewart12-Apr-04 6:03 
GeneralBeginner Pin
Member 73267111-Apr-04 9:31
Member 73267111-Apr-04 9:31 
GeneralRe: Beginner Pin
Nnamdi Onyeyiri11-Apr-04 9:44
Nnamdi Onyeyiri11-Apr-04 9:44 
GeneralRe: Beginner Pin
Michael Timoney11-Apr-04 14:39
Michael Timoney11-Apr-04 14:39 
Generalget system directory Pin
kendao11-Apr-04 5:44
kendao11-Apr-04 5:44 
GeneralRe: get system directory Pin
Mazdak11-Apr-04 6:25
Mazdak11-Apr-04 6:25 
GeneralDataSet in Parent Form - DataBinding from Child UserControl's Pin
Festus Redelinghuys11-Apr-04 4:42
Festus Redelinghuys11-Apr-04 4:42 
GeneralRe: DataSet in Parent Form - DataBinding from Child UserControl's Pin
Heath Stewart12-Apr-04 6:07
protectorHeath Stewart12-Apr-04 6:07 
GeneralRe: DataSet in Parent Form - DataBinding from Child UserControl's Pin
Festus Redelinghuys12-Apr-04 11:37
Festus Redelinghuys12-Apr-04 11:37 
GeneralRe: DataSet in Parent Form - DataBinding from Child UserControl's Pin
Heath Stewart13-Apr-04 2:48
protectorHeath Stewart13-Apr-04 2:48 
QuestionHow to do this OnPaint Event ?(about remote screen transmit) Pin
fu011-Apr-04 2:16
fu011-Apr-04 2:16 
AnswerRe: How to do this OnPaint Event ?(about remote screen transmit) Pin
leppie11-Apr-04 3:24
leppie11-Apr-04 3:24 
AnswerRe: How to do this OnPaint Event ?(about remote screen transmit) Pin
DrGreen12-Apr-04 10:46
DrGreen12-Apr-04 10:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.