Click here to Skip to main content
15,923,376 members
Home / Discussions / C#
   

C#

 
GeneralRe: string to pieces Pin
marwan_siala20-Mar-07 8:26
marwan_siala20-Mar-07 8:26 
QuestionDialog with ProgressBar & label not working correctly Pin
kozu20-Mar-07 7:39
kozu20-Mar-07 7:39 
AnswerRe: Dialog with ProgressBar & label not working correctly Pin
Zoltan Balazs20-Mar-07 8:59
Zoltan Balazs20-Mar-07 8:59 
GeneralRe: Dialog with ProgressBar & label not working correctly Pin
kozu20-Mar-07 9:07
kozu20-Mar-07 9:07 
GeneralRe: Dialog with ProgressBar & label not working correctly Pin
Zoltan Balazs20-Mar-07 9:29
Zoltan Balazs20-Mar-07 9:29 
GeneralRe: Dialog with ProgressBar & label not working correctly Pin
Dave Kreskowiak20-Mar-07 12:24
mveDave Kreskowiak20-Mar-07 12:24 
GeneralRe: Dialog with ProgressBar & label not working correctly Pin
kozu20-Mar-07 13:32
kozu20-Mar-07 13:32 
QuestionListViewItemCollection's implementation of interfaces... Pin
Shy Agam20-Mar-07 7:39
Shy Agam20-Mar-07 7:39 
Hey all,

I wrote an ImageCombo control, inheriting from ComboBox.
In my attempt to design the control as close as possible to the original design pattern used for collections controls I have also written a ImageCombo.ImageComboItemCollection class.
I keep looking at the ListView control and other stuff to get an idea of the design pattern.
If you open your Object Browser you'll see that ListView.ListViewItemCollection implements the following interfaces:
ICollection, IEnumerable, and IList.

However, if we look at the IList interface for example, the arguments in most of its methods are objects.
Now take a look at ListView.ListViewItemCollection... aaaaand... Aha!
Somehow they've managed to implement IList and hide Add(object) from the users!
Users can now only use the other overloads of Add()! (e.g. Add(ListViewItem)).

How is it possible?
How can I implement IList and hide the Add(object) method?

Thanks in advance,
Shy.
AnswerRe: ListViewItemCollection's implementation of interfaces... [modified] Pin
Edmundisme20-Mar-07 8:32
Edmundisme20-Mar-07 8:32 
GeneralRe: ListViewItemCollection's implementation of interfaces... [modified] Pin
Shy Agam20-Mar-07 9:01
Shy Agam20-Mar-07 9:01 
GeneralRe: ListViewItemCollection's implementation of interfaces... Pin
Shy Agam20-Mar-07 9:25
Shy Agam20-Mar-07 9:25 
AnswerRe: ListViewItemCollection's implementation of interfaces... Pin
Shy Agam20-Mar-07 10:29
Shy Agam20-Mar-07 10:29 
GeneralRe: ListViewItemCollection's implementation of interfaces... Pin
Edmundisme20-Mar-07 11:04
Edmundisme20-Mar-07 11:04 
GeneralRe: ListViewItemCollection's implementation of interfaces... Pin
Shy Agam20-Mar-07 11:06
Shy Agam20-Mar-07 11:06 
QuestionProject Namespace/Folder setup Question Pin
jubilanttiger20-Mar-07 7:12
jubilanttiger20-Mar-07 7:12 
QuestionGridview with dropdownlist. Pin
peter.bellen@qsm-europe.com20-Mar-07 7:06
peter.bellen@qsm-europe.com20-Mar-07 7:06 
QuestionExtend FileDialog Class Pin
aamir22au20-Mar-07 6:20
aamir22au20-Mar-07 6:20 
QuestionMultiThreading Error in C# Pin
Ollie198620-Mar-07 6:13
Ollie198620-Mar-07 6:13 
AnswerBad Ram? Pin
Ennis Ray Lynch, Jr.20-Mar-07 7:21
Ennis Ray Lynch, Jr.20-Mar-07 7:21 
GeneralRe: Bad Ram? Pin
Ollie198620-Mar-07 11:53
Ollie198620-Mar-07 11:53 
GeneralRe: Bad Ram? Pin
Ennis Ray Lynch, Jr.20-Mar-07 12:23
Ennis Ray Lynch, Jr.20-Mar-07 12:23 
QuestionRe: Bad Ram? Pin
Ollie198620-Mar-07 12:26
Ollie198620-Mar-07 12:26 
QuestionDesign-Time code debugging... Pin
Shy Agam20-Mar-07 6:12
Shy Agam20-Mar-07 6:12 
AnswerRe: Design-Time code debugging... Pin
Ollie198620-Mar-07 6:15
Ollie198620-Mar-07 6:15 
AnswerRe: Design-Time code debugging... Pin
Dave Kreskowiak20-Mar-07 6:28
mveDave Kreskowiak20-Mar-07 6:28 

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.