Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Friends,
i am creating one desktop gadget/sidebar application. and i almost done but stuck @ one thing when i assign value(text message) to label from textbox it sets perfectly. but, when i close application and restarts it again the value for the label shows empty.

i have one textbox for accepting notes from user to set to label.

Here is an image for the application-- (its not complete app image only part of it)
http://www.freeimagehosting.net/63a44[^]

Help me guys please. appreciate your valuable help..!!

Thanks.
Posted
Updated 11-Oct-11 3:10am
v2

You don't need serialization to do this. All you have to do is save the value you put in the label to a text or XML file and reload it when your app starts.
 
Share this answer
 
Hi,
You Can Use Binary Serialization Here....
Whatever You want to Store Do Serialization Of it so that whenever you close and Open App you will get Message...
 
Share this answer
 
v2
Hi, I got Your Problem......

<a href="http://msdn.microsoft.com/en-us/library/b85344hz.aspx">BinaryFormatter.Deserialize Method</a>[<a href="http://msdn.microsoft.com/en-us/library/b85344hz.aspx" target="_blank">^</a>]


Just check this Link

Just Rate My Answer ... If you feel Like Solution
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900