Click here to Skip to main content
16,005,178 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSerial number on usb flash drive Pin
gladsmhe10-Jan-07 15:02
gladsmhe10-Jan-07 15:02 
AnswerRe: Serial number on usb flash drive Pin
nlarson1110-Jan-07 15:53
nlarson1110-Jan-07 15:53 
QuestionClass that contains properties as well as a collection of a Class Pin
Marcus J. Smith10-Jan-07 9:59
professionalMarcus J. Smith10-Jan-07 9:59 
AnswerRe: Class that contains properties as well as a collection of a Class Pin
Colin Angus Mackay10-Jan-07 10:24
Colin Angus Mackay10-Jan-07 10:24 
GeneralRe: Class that contains properties as well as a collection of a Class Pin
Marcus J. Smith10-Jan-07 11:15
professionalMarcus J. Smith10-Jan-07 11:15 
GeneralRe: Class that contains properties as well as a collection of a Class Pin
nlarson1110-Jan-07 11:23
nlarson1110-Jan-07 11:23 
GeneralRe: Class that contains properties as well as a collection of a Class Pin
Christian Graus10-Jan-07 11:25
protectorChristian Graus10-Jan-07 11:25 
GeneralRe: Class that contains properties as well as a collection of a Class [modified] Pin
Marcus J. Smith11-Jan-07 1:56
professionalMarcus J. Smith11-Jan-07 1:56 
Ok Im completely lost now. Why would I use a Get only when I need the collection stored in that class?

Here is what I am trying to do, I want to see if I can successfully serialize the class into the XML I want and then I can add the beginning and ending tags as I need them. So I have multiple PlacesLived for example so I would have the Places_Lived_Data property which would hold multiple Places_Lived objects. I tried this morning to create a collection before I set it to the property and fill it with the objects there then I would set it equal to the property value which then tells me:

"To be XML serializable, types which inherit from ICollection must have an implementation of Add(System.Object) at all levels of their inheritance hierarchy. Microsoft.VisualBasic.Collection does not implement Add(System.Object)."

-- I think I found a solution. According to http://www.codeguru.com/forum/showthread.php?t=386776[^] I should be using Generic.List(Of PlacesLived) instead of Collection. That took care of the issue I was having and the XML output looks correct at first glance. Thanks!!!

I think I need the weekend to get here!
Cleako


-- modified at 8:03 Thursday 11th January, 2007
GeneralRe: Class that contains properties as well as a collection of a Class Pin
Christian Graus11-Jan-07 8:29
protectorChristian Graus11-Jan-07 8:29 
QuestionAccess to arraylist globaly Pin
WestSideRailways10-Jan-07 9:43
WestSideRailways10-Jan-07 9:43 
AnswerRe: Access to arraylist globaly Pin
nlarson1110-Jan-07 10:06
nlarson1110-Jan-07 10:06 
GeneralRe: Access to arraylist globaly Pin
WestSideRailways10-Jan-07 11:15
WestSideRailways10-Jan-07 11:15 
AnswerRe: Access to arraylist globaly Pin
Christian Graus10-Jan-07 11:22
protectorChristian Graus10-Jan-07 11:22 
GeneralRe: Access to arraylist globaly Pin
nlarson1110-Jan-07 11:26
nlarson1110-Jan-07 11:26 
GeneralRe: Access to arraylist globaly Pin
Christian Graus10-Jan-07 11:44
protectorChristian Graus10-Jan-07 11:44 
GeneralRe: Access to arraylist globaly Pin
WestSideRailways10-Jan-07 14:26
WestSideRailways10-Jan-07 14:26 
GeneralRe: Access to arraylist globaly Pin
nlarson1110-Jan-07 15:18
nlarson1110-Jan-07 15:18 
GeneralRe: Access to arraylist globaly Pin
Christian Graus10-Jan-07 18:19
protectorChristian Graus10-Jan-07 18:19 
GeneralRe: Access to arraylist globaly Pin
WestSideRailways10-Jan-07 19:13
WestSideRailways10-Jan-07 19:13 
GeneralRe: Access to arraylist globaly Pin
Christian Graus11-Jan-07 0:52
protectorChristian Graus11-Jan-07 0:52 
QuestionSplash screen & Startup form Pin
kindman_nb10-Jan-07 9:35
kindman_nb10-Jan-07 9:35 
QuestionSerialization in vb2005 Pin
john_paul10-Jan-07 8:27
john_paul10-Jan-07 8:27 
AnswerRe: Serialization in vb2005 Pin
Christian Graus10-Jan-07 9:16
protectorChristian Graus10-Jan-07 9:16 
AnswerRe: Serialization in vb2005 Pin
Marc Paliotti10-Jan-07 9:18
Marc Paliotti10-Jan-07 9:18 
AnswerRe: Serialization in vb2005 Pin
nlarson1110-Jan-07 10:27
nlarson1110-Jan-07 10: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.