Click here to Skip to main content
15,897,187 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralCapturing the Screen Resolution Pin
bneacetp21-Jan-04 10:48
bneacetp21-Jan-04 10:48 
QuestionQuery Analyzer Control ? Pin
house_anno20-Jan-04 22:41
house_anno20-Jan-04 22:41 
AnswerRe: Query Analyzer Control ? Pin
Mazdak20-Jan-04 23:25
Mazdak20-Jan-04 23:25 
GeneralRe: Query Analyzer Control ? Pin
house_anno20-Jan-04 23:40
house_anno20-Jan-04 23:40 
GeneralRe: Query Analyzer Control ? Pin
Mazdak21-Jan-04 1:13
Mazdak21-Jan-04 1:13 
GeneralRe: Query Analyzer Control ? Pin
house_anno21-Jan-04 1:27
house_anno21-Jan-04 1:27 
GeneralBest Practices for Modular Approach in Microsft.NET and Microsoft Commerce Server 2002 Pin
kandasamyg20-Jan-04 17:26
kandasamyg20-Jan-04 17:26 
GeneralArrayList Question Pin
bneacetp20-Jan-04 6:52
bneacetp20-Jan-04 6:52 
I am experimenting with the ArrayList class in the .NET Framework and I am having a problem retreiving an object stored in it to call/use its members.

For example:

If I have a class named MyObject and I add three (or more) instances of them to the ArrayList instance named testArray like:

Dim obj As New MyObject
Dim obj1 As New MyObject
Dim obj2 As New MyObject

testArray.Add(obj)
testArray.Add(obj1)
testArray.Add(obj2)

How would I be able to index one of the instances to use/access its members. I would expect to do it like this (assuming that MyObject has a Name property):

' Accessing the first item in the ArrayList.
testArray.Item(0).Name = "New Name"

This doesn't seem to want to work. Intellisense, instead of showing the members of the class stored, it shows the GetType() function only. Anybody have any ideas? Confused | :confused:

Thanks in advance.

Happy Programming!

WWW::CodeProject::BNEACETP
GeneralRe: ArrayList Question Pin
bneacetp20-Jan-04 7:01
bneacetp20-Jan-04 7:01 
GeneralRe: ArrayList Question Pin
Mike Dimmick22-Jan-04 4:48
Mike Dimmick22-Jan-04 4:48 
GeneralRe: ArrayList Question Pin
bneacetp22-Jan-04 13:56
bneacetp22-Jan-04 13:56 
GeneralLow Pause-Time Garbage Collector Pin
Andrew Shapira19-Jan-04 20:14
Andrew Shapira19-Jan-04 20:14 
GeneralQuestion about installation and version of .NET Framework Pin
Korby19-Jan-04 19:54
Korby19-Jan-04 19:54 
GeneralRemove Lock on (assembly) File Pin
Paul Farry19-Jan-04 18:52
professionalPaul Farry19-Jan-04 18:52 
GeneralRe: Remove Lock on (assembly) File Pin
clon20-Jan-04 1:00
clon20-Jan-04 1:00 
GeneralIEnumUnknown Implementation Pin
shawnzhou19-Jan-04 15:08
shawnzhou19-Jan-04 15:08 
GeneralChanging Font Style of TabPage text Pin
nvmoss19-Jan-04 10:01
nvmoss19-Jan-04 10:01 
QuestionCan we compile IL to x86 assembly? Pin
Judah Gabriel Himango19-Jan-04 5:34
sponsorJudah Gabriel Himango19-Jan-04 5:34 
AnswerRe: Can we compile IL to x86 assembly? Pin
Daniel Turini19-Jan-04 6:14
Daniel Turini19-Jan-04 6:14 
GeneralRe: Can we compile IL to x86 assembly? Pin
Judah Gabriel Himango19-Jan-04 7:35
sponsorJudah Gabriel Himango19-Jan-04 7:35 
GeneralRe: Can we compile IL to x86 assembly? Pin
Daniel Turini19-Jan-04 7:41
Daniel Turini19-Jan-04 7:41 
GeneralApp domain vs. process Pin
Hesham Amin17-Jan-04 4:28
Hesham Amin17-Jan-04 4:28 
GeneralRe: App domain vs. process Pin
Mike Dimmick19-Jan-04 6:10
Mike Dimmick19-Jan-04 6:10 
GeneralRe: App domain vs. process Pin
Hesham Amin19-Jan-04 10:25
Hesham Amin19-Jan-04 10:25 
Generalcapturing user's action Pin
dnprock16-Jan-04 13:27
dnprock16-Jan-04 13:27 

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.