473,396 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

saving state

I would like to save the state of a set of controls, their child controls
and data values when I exit the program. Then be able to restore the state
when I open the program. What is the best way of doing this.
Thanks,
Rick
Nov 16 '05 #1
4 1955
"Rick" <ri**@abasoftware.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I would like to save the state of a set of controls, their child
controls and data values when I exit the program. Then be able to
restore the state when I open the program. What is the best way of
doing this.


Hi Rick,
you should look up Serialization & the [Serializable] attribute.

Barry Mossman
Nov 16 '05 #2
Thanks for Barry's quick response.

Hi Rick,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to save the state of each
control and its child control on a form. If there is any misunderstanding,
please feel free to let me know.

Just as Barry mentioned, we can use implement the ISerializable interface
and the Serializable attributes to achieve this. You can try to check the
following link for more information.

http://msdn.microsoft.com/library/de...us/dnadvnet/ht
ml/vbnet09252001.asp

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 16 '05 #3
Thanks,

The link didn't work, but I did see where there is discussion of the
ISerializable interface in MSDN. In previewing the info, it looks like what
I'm looking for. I'll look it over.

If there are any good sample apps implementing this
behaviour that you know of, I'd like a link to those too.

Thanks,
Rick

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:iF**************@cpmsftngxa10.phx.gbl...
Thanks for Barry's quick response.

Hi Rick,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to save the state of each
control and its child control on a form. If there is any misunderstanding,
please feel free to let me know.

Just as Barry mentioned, we can use implement the ISerializable interface
and the Serializable attributes to achieve this. You can try to check the
following link for more information.

http://msdn.microsoft.com/library/de...us/dnadvnet/ht
ml/vbnet09252001.asp

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 16 '05 #4
"Rick" <ri**@abasoftware.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
The link didn't work, but I did see where there is discussion of the
ISerializable interface in MSDN. In previewing the info, it looks like
what I'm looking for. I'll look it over.


Kevin's link works if you take care of the line wrapping. Here is a
smaller version of the same url:
http://tinyurl.com/52akh

The example code is in VB though.

Barry Mossman
Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jacob H | last post by:
Hello list... I'm developing an adventure game in Python (which of course is lots of fun). One of the features is the ability to save games and restore the saves later. I'm using the pickle...
138
by: theodp | last post by:
--> From http://www.techdirt.com/articles/20040406/1349225.shtml Microsoft Patents Saving The Name Of A Game Contributed by Mike on Tuesday, April 6th, 2004 @ 01:49PM from the...
5
by: Michael Albanese | last post by:
Can you save objects a (custom class) to Viewstate and then get them on a later page?? I have a custom class for an ASP.Net application that I would like to make available across several web...
1
by: Mahesh Devjibhai Dhola [MVP] | last post by:
Hi, User can adjust the size of columns of a table or the position of splitter in UI. We want these adjustments to be remembered when we restart the application. Currently, we are saving these...
11
by: cwdjrxyz | last post by:
Several threads have discussed the accuracy of time calculated using script when Daylight Saving Time (DST) is considered. A page at http://webexhibits.org/daylightsaving/ gives much information on...
0
by: headware | last post by:
I've been reading about saving the state of the controls of a page so the user can be redirected to another page and then return to the original in the state it was in when they left. I've seen a...
2
by: Børge Hansen | last post by:
Hi. I am trying to create functionality for saving the contents (state) of a page. The idea is that when navigating away from a webpage and later returning the state of the textboxes, etc should...
2
by: Greg | last post by:
I am building an SVG interface (with Javascript) for client side control of some hardware. The svg will be hosted on a micro PC (http://www.picotux.com/indexe.html). It runs a uClinux OS with GCC...
1
by: Jeff | last post by:
I need to place a "Previous Page" link on every page within my site and a simple javascript:history.back() will not work because I need it to capture the state of the page when I left it. For...
1
by: nmahesh567 | last post by:
Hi All, I have a following task to be implemented in my project and I would like to know ideas and best possible solution with little code from you guys. Please let me know and any help would be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.