Click here to Skip to main content
15,899,474 members
Home / Discussions / C#
   

C#

 
AnswerRe: Active folder that calls my dll or com Pin
Dave Kreskowiak1-Oct-07 5:06
mveDave Kreskowiak1-Oct-07 5:06 
GeneralRe: Active folder that calls my dll or com Pin
nishchalp1-Oct-07 5:11
nishchalp1-Oct-07 5:11 
AnswerRe: Active folder that calls my dll or com Pin
TJoe1-Oct-07 5:14
TJoe1-Oct-07 5:14 
Questionsharing an event handler, not getting what I expect Pin
JoeRip1-Oct-07 3:47
JoeRip1-Oct-07 3:47 
AnswerRe: sharing an event handler, not getting what I expect Pin
TJoe1-Oct-07 3:57
TJoe1-Oct-07 3:57 
GeneralRe: sharing an event handler, not getting what I expect Pin
JoeRip1-Oct-07 4:02
JoeRip1-Oct-07 4:02 
GeneralRe: sharing an event handler, not getting what I expect Pin
JoeRip1-Oct-07 4:15
JoeRip1-Oct-07 4:15 
GeneralRe: sharing an event handler, not getting what I expect Pin
TJoe1-Oct-07 4:30
TJoe1-Oct-07 4:30 
I'm not sure it matters. Any way you look at it, you will have to have three (assuming there are three ComboBoxes) lists. There are either three DataSources or three ComboBox.Items.

If the lists are long you may want to create a wrapper around the ArrayList. The wrapper would take a reference to an ArrayList. It would also implement the IList (and possibly the IList<T>) interface. Then you could just forward the IList method calls to the wrapped ArrayList. This way you have a small (in terms of memory) object that "points" to the large ArrayList. Then you would create three instances of your wrapper (all pointing to the same ArrayList). I believe this will get around the DataSource issue. This is really only useful if your ArrayList is large, since it would reduce memory usage.



Take care,
Tom

-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com

GeneralRe: sharing an event handler, not getting what I expect Pin
Luc Pattyn1-Oct-07 4:35
sitebuilderLuc Pattyn1-Oct-07 4:35 
GeneralRe: sharing an event handler, not getting what I expect Pin
JoeRip1-Oct-07 4:41
JoeRip1-Oct-07 4:41 
GeneralRe: sharing an event handler, not getting what I expect Pin
Luc Pattyn1-Oct-07 5:49
sitebuilderLuc Pattyn1-Oct-07 5:49 
GeneralRe: sharing an event handler, not getting what I expect Pin
TJoe1-Oct-07 5:56
TJoe1-Oct-07 5:56 
GeneralRe: sharing an event handler, not getting what I expect Pin
JoeRip1-Oct-07 5:57
JoeRip1-Oct-07 5:57 
GeneralRe: sharing an event handler, not getting what I expect [modified] Pin
Luc Pattyn1-Oct-07 6:03
sitebuilderLuc Pattyn1-Oct-07 6:03 
GeneralRe: sharing an event handler, not getting what I expect Pin
TJoe1-Oct-07 4:50
TJoe1-Oct-07 4:50 
QuestionProblem with macros Pin
yadlaprasad1-Oct-07 3:29
yadlaprasad1-Oct-07 3:29 
AnswerRe: Problem with macros Pin
TJoe1-Oct-07 3:48
TJoe1-Oct-07 3:48 
Questionhelp with code to implement a calculator.... Pin
MinhajuddinK1-Oct-07 3:25
MinhajuddinK1-Oct-07 3:25 
AnswerRe: help with code to implement a calculator.... Pin
led mike1-Oct-07 4:43
led mike1-Oct-07 4:43 
AnswerRe: help with code to implement a calculator.... Pin
Luc Pattyn1-Oct-07 4:55
sitebuilderLuc Pattyn1-Oct-07 4:55 
GeneralRe: help with code to implement a calculator.... Pin
MinhajuddinK1-Oct-07 7:32
MinhajuddinK1-Oct-07 7:32 
QuestionAmbiguous Date Format in Excel Pin
meeram3951-Oct-07 3:21
meeram3951-Oct-07 3:21 
AnswerRe: Ambiguous Date Format in Excel Pin
raja mohamed21-Jul-09 2:15
raja mohamed21-Jul-09 2:15 
QuestionSystem.IO.Compression Pin
Vodstok1-Oct-07 3:12
Vodstok1-Oct-07 3:12 
AnswerRe: System.IO.Compression Pin
TJoe1-Oct-07 3:16
TJoe1-Oct-07 3:16 

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.