Click here to Skip to main content
16,007,932 members
Home / Discussions / C#
   

C#

 
Questionshutdown Pin
erfi6-Jul-06 11:24
erfi6-Jul-06 11:24 
AnswerRe: shutdown Pin
Dan Neely6-Jul-06 11:50
Dan Neely6-Jul-06 11:50 
AnswerRe: shutdown Pin
engsrini6-Jul-06 20:33
engsrini6-Jul-06 20:33 
Questionhow to execute windows mediaplyer Pin
erfi6-Jul-06 11:19
erfi6-Jul-06 11:19 
AnswerRe: how to execute windows mediaplyer Pin
Wjousts6-Jul-06 11:58
Wjousts6-Jul-06 11:58 
QuestionSqlRowUpdatedEventHandler question Pin
leckey6-Jul-06 11:03
leckey6-Jul-06 11:03 
AnswerRe: SqlRowUpdatedEventHandler question Pin
led mike6-Jul-06 11:10
led mike6-Jul-06 11:10 
QuestionCollection Serialization Error: unable to convert to InstanceDescriptor [modified] Pin
FocusedWolf6-Jul-06 10:00
FocusedWolf6-Jul-06 10:00 
Hi, i'm experiencing a weird bug with some code in my custom control's collection.

I've used this code before in same project and vs05 didn't complain for hundreds of builds...but when i needed to tinker more with the control in the designer...then something happened :P ... i now get this error everytime i add items to the collection and attempt to save or build the code:

<br />
Code generation for property 'Items' failed.  Error was: ''StudioListBoxItemTypeConverter' is unable to convert 'StudioControls.Controls.StudioListBoxItem' to 'System.ComponentModel.Design.Serialization.InstanceDescriptor'.'<br />


I tried to seperate the collection from the control to narrow down the bug... "simplified" code for the collection alone are here:


http://focusedwolf.googlepages.com/GenericEventCollectionBase.cs
http://focusedwolf.googlepages.com/StudioListBoxItem.cs
http://focusedwolf.googlepages.com/StudioListBoxItemCollection.cs
http://focusedwolf.googlepages.com/StudioListBoxItemTypeConverter.cs
http://focusedwolf.googlepages.com/TestControl.cs

If you want to see the error, dump all that code into a form project and drag the TestControl onto a form...add an item through the items property...and try to save or build.

-- modified at 16:06 Thursday 6th July, 2006
AnswerRe: Collection Serialization Error: unable to convert to InstanceDescriptor Pin
led mike6-Jul-06 10:32
led mike6-Jul-06 10:32 
GeneralRe: Collection Serialization Error: unable to convert to InstanceDescriptor Pin
FocusedWolf6-Jul-06 10:54
FocusedWolf6-Jul-06 10:54 
GeneralRe: Collection Serialization Error: unable to convert to InstanceDescriptor Pin
led mike6-Jul-06 11:06
led mike6-Jul-06 11:06 
GeneralRe: Collection Serialization Error: unable to convert to InstanceDescriptor Pin
FocusedWolf6-Jul-06 11:20
FocusedWolf6-Jul-06 11:20 
GeneralRe: Collection Serialization Error: unable to convert to InstanceDescriptor Pin
led mike6-Jul-06 11:48
led mike6-Jul-06 11:48 
GeneralRe: Collection Serialization Error: unable to convert to InstanceDescriptor [modified] Pin
FocusedWolf6-Jul-06 18:21
FocusedWolf6-Jul-06 18:21 
GeneralRe: Collection Serialization Error: unable to convert to InstanceDescriptor Pin
led mike7-Jul-06 5:02
led mike7-Jul-06 5:02 
GeneralRe: Collection Serialization Error: unable to convert to InstanceDescriptor Pin
FocusedWolf7-Jul-06 6:12
FocusedWolf7-Jul-06 6:12 
QuestionXml update problem Pin
ytubis6-Jul-06 9:05
ytubis6-Jul-06 9:05 
AnswerRe: Xml update problem Pin
Not Active6-Jul-06 9:16
mentorNot Active6-Jul-06 9:16 
GeneralRe: Xml update problem Pin
Josh Smith6-Jul-06 9:23
Josh Smith6-Jul-06 9:23 
GeneralRe: Xml update problem Pin
ytubis6-Jul-06 9:25
ytubis6-Jul-06 9:25 
GeneralRe: Xml update problem Pin
Josh Smith6-Jul-06 9:34
Josh Smith6-Jul-06 9:34 
GeneralRe: Xml update problem Pin
ytubis6-Jul-06 9:24
ytubis6-Jul-06 9:24 
GeneralRe: Xml update problem Pin
Not Active6-Jul-06 9:27
mentorNot Active6-Jul-06 9:27 
GeneralRe: Xml update problem Pin
led mike6-Jul-06 10:35
led mike6-Jul-06 10:35 
GeneralRe: Xml update problem Pin
Josh Smith6-Jul-06 10:49
Josh Smith6-Jul-06 10:49 

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.