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:
456,144<>Q1,10,10<>Q2,10,10<>Q3,10,10<>Q4,10,10

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.

Advertisements

About JohnMarkHowell

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:

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s