Click here to Skip to main content
15,896,727 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: save time Pin
saraswathy14317-Jul-07 22:52
saraswathy14317-Jul-07 22:52 
QuestionHow can i blink the color of lable in the DatagridItemTemplate? Pin
Guru_yogi17-Jul-07 19:55
Guru_yogi17-Jul-07 19:55 
AnswerRe: How can i blink the color of lable in the DatagridItemTemplate? Pin
Nilesh Hapse18-Jul-07 1:20
Nilesh Hapse18-Jul-07 1:20 
QuestionHow to drag a treeview node from a VB app to a VB.NET app? Pin
sj_aus17-Jul-07 18:20
sj_aus17-Jul-07 18:20 
AnswerRe: How to drag a treeview node from a VB app to a VB.NET app? Pin
Paul Conrad29-Jul-07 6:12
professionalPaul Conrad29-Jul-07 6:12 
QuestionMDI Applications on VB .NET Pin
muzzybee17-Jul-07 17:44
muzzybee17-Jul-07 17:44 
AnswerRe: MDI Applications on VB .NET Pin
Dave Kreskowiak18-Jul-07 2:09
mveDave Kreskowiak18-Jul-07 2:09 
QuestionReflection on a Collection Object Pin
twista17-Jul-07 13:27
twista17-Jul-07 13:27 
Hi,

I've been trying to work out how to iterate through a collection object using reflection.

I have a class with a few simple objects, strings, single[] arrays, and one collection.

However, when I'm using the GetFields() method to retrieve the objects in my class, when it gets to the collection I am unable to view all the items in the collection.

dim coll as collection = FieldInfoObj.getvalue(obj)
console.writeline("Collection has " & coll.count & " items in the collection")
for each item as object in coll
do_stuff(item)
next

Although it correctly states that I have 4 items in the collection, item 1 is Ok. item 2 is 'nothing' and item 3 causes an error. But I do actually have 4 'singles' in the collection.

How do i access the collection objects using reflection?

I *think* I need to reflect into each object seperately, and not just iterate through them after setting the main collection object using the getvalue(obj) method as I would with the other system.xxx type objects (which work fine)

Could anyone provide a simple example of how to iterate through a collection using reflection?

Thanks in advance,
Phil.
QuestionVB.NET Web Services question Pin
Subrat Parida17-Jul-07 13:00
Subrat Parida17-Jul-07 13:00 
AnswerRe: VB.NET Web Services question Pin
_Damian S_17-Jul-07 15:26
professional_Damian S_17-Jul-07 15:26 
GeneralRe: VB.NET Web Services question Pin
Subrat Parida18-Jul-07 9:38
Subrat Parida18-Jul-07 9:38 
GeneralRe: VB.NET Web Services question Pin
Dave Kreskowiak18-Jul-07 11:40
mveDave Kreskowiak18-Jul-07 11:40 
GeneralRe: VB.NET Web Services question Pin
Subrat Parida18-Jul-07 15:06
Subrat Parida18-Jul-07 15:06 
Questionwhy no delete? Pin
boyindie17-Jul-07 12:34
boyindie17-Jul-07 12:34 
AnswerRe: why no delete? Pin
RepliCrux17-Jul-07 13:11
RepliCrux17-Jul-07 13:11 
GeneralRe: why no delete? Pin
boyindie17-Jul-07 13:20
boyindie17-Jul-07 13:20 
GeneralRe: why no delete? Pin
boyindie17-Jul-07 13:23
boyindie17-Jul-07 13:23 
QuestionDatabase permissions Pin
Cory Kimble17-Jul-07 10:43
Cory Kimble17-Jul-07 10:43 
AnswerRe: Database permissions Pin
Dave Kreskowiak17-Jul-07 11:05
mveDave Kreskowiak17-Jul-07 11:05 
AnswerRe: Database permissions Pin
leckey17-Jul-07 11:20
leckey17-Jul-07 11:20 
GeneralRe: Database permissions Pin
Cory Kimble18-Jul-07 3:13
Cory Kimble18-Jul-07 3:13 
GeneralRe: Database permissions Pin
Dave Kreskowiak18-Jul-07 11:42
mveDave Kreskowiak18-Jul-07 11:42 
QuestionByRef in class property setters Pin
Ahmad Zaidi17-Jul-07 9:16
Ahmad Zaidi17-Jul-07 9:16 
AnswerRe: ByRef in class property setters Pin
Dave Kreskowiak17-Jul-07 10:15
mveDave Kreskowiak17-Jul-07 10:15 
AnswerRe: ByRef in class property setters Pin
Guffa17-Jul-07 11:45
Guffa17-Jul-07 11:45 

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.