Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 13th, 2010, 02:04 AM
Registered User
 
Join Date: May 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default serialize & deserialize

hi
I have a project in c#.net windows application.
I need to save information in a textbox somewhere. it is not important where it will be saved in a file or in sql server. I just need to know how I can save every Property of my text such az bold,italic,color,right to left,center and .... .
someone told me I need to know serialize & deserialize but I could'nt find anything usefull in google.please help me.
I am badly in need of your answers.
thank you.
 
Old June 13th, 2010, 04:54 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
but I could'nt find anything usefull in google.
Looks like you're using a different Google than the rest of the world. Try this:

http://www.google.nl/#hl=nl&q=.NET+s...ce7b8b40a10917

Then follow the first 20 resultsor so, glance over them to see if they are useful for you, and then dig a little deeper in a few of them.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old June 13th, 2010, 07:10 AM
Registered User
 
Join Date: May 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok.thank u.
but I have another question :
Is there any other way for my problem except serialize & deserialize?
 
Old June 13th, 2010, 07:24 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You could manaully save the items in a database, a text file or whatever makes sense.

What exactly are you trying to accomplish? E.g. why do you need to persist these values?


Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old June 13th, 2010, 07:35 AM
Registered User
 
Join Date: May 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

my project is something like a mail server.if sender sends a word or text with size 20 and color red and he uses right to left mode then the reciever should read it with size 20 and color red and .... but when I save the text in a txt file all of the properties will be lost. so I think I need to save everything not only text.
 
Old June 13th, 2010, 07:49 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

They send you a control??? If that's the case, serialization is the answer.

Otherwise, look into text formats such as HTML / CSS or RTF (Rich Text Format) that mixes the content and format.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error During Binary Deserialize - URGENT prashanthks C# 2005 1 April 3rd, 2009 10:11 AM
Deserialize from method information in .NET C# DGallo C# 1 September 13th, 2007 09:56 PM
help!help me,please!(about serialize) gooood General .NET 2 July 12th, 2005 07:30 PM
Linux & KDE & C++ & QT & MYSQL & Kdevelop Munnnki Linux 0 January 2nd, 2005 05:41 PM
serialize more complex objects Pieper .NET Web Services 0 July 20th, 2003 09:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.