Custom Control Property Deserialization Problem

I just want to share this little tid-bit. When building custom controls, if you build a custom type converter, only use commas to separate your pieces of information. I have a control that I’m building that needed size and corner information. So I separated the size info and each of the corner information by the pipe as shown below:

However, when I tried to deserialize the information (reload the form), the designer choked and said that the string was in the incorrect format. Changing the separator to a comma (along with my deserialization code) resolved the problem.

As you can see, even Blogger can’t handle the pipe character.


About JohnHowell

I am a professional software developer with over 20 years of experience. I currently specialize in Microsoft technologies such as VS, TFS, C#, VB.Net, WCF, WPF, WW, etc.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s