Hi all:
Another question again...
We have a requirement to save user profile information for our application.
The user would like to be able to login to the application and have all of
their "necessary" settings remembered from their previous session. I've
done this before in Java by determining which info to save (ie, which
windows were opened, were they were (x,y) on the desk top, the dimensions of
sizable controls that they adjusted the size to, etc..) and persisting it to
an XML document and then persisting that document. When logging in, I'd
get the document and "reconstruct" what they were doing based on the
document.
This was in Java/Swing. I'm somewhat new to Windows forms and .NET and am
learning more about it but am nowhere near proficient as I was in
Java/Swing. Does the Windows API / .NET 2.0 framework have anything
available that easily saves the state of all opened windows and their
dimensions of each control within each window? I'm going to guess the
answer is no and I'm prepared to do it the same way I did it in the Java
application but I thought I'd ask in hopes that Microsoft provided this
useful feature :-)
thanks again for any help... Even if the answer is "no" or "I don't think
so", I am grateful for your time.
Kevin Spencer - 19 Mar 2006 05:27 GMT
Application Settings can be saved on per-user or per-application bases. The
framework for it is relatively simple to use.

Signature
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.
> Hi all:
>
[quoted text clipped - 26 lines]
> think
> so", I am grateful for your time.
Anon - 19 Mar 2006 05:42 GMT
Hi Kevin:
thanks... What's the name of the framework/API? What can I do a google
search on in order to find a page(s) that describes how to use it?
thanks again...
> Application Settings can be saved on per-user or per-application bases. The
> framework for it is relatively simple to use.
[quoted text clipped - 29 lines]
> > think
> > so", I am grateful for your time.
Frustrated - 19 Mar 2006 06:03 GMT
"Anon" <myno@my.net> kirjoitti viestissä:Kb5Tf.629$nN2.181@fe04.lga...
<snip>
> thanks... What's the name of the framework/API? What can I do a google
> search on in order to find a page(s) that describes how to use it?
Here's little "tutorial" I quickly put together (had it about done, just
haven't had time to finish layout for my site etc. so It's been sitting on
HD)about saving settings.
http://www.sorrowman.org/c-sharp-programmer/save-user-settings.html
Hopefully I didn't manage forget anything crucial :) 7am and still "up" here
so might have forgotten something...
<snip>
Anon - 19 Mar 2006 06:35 GMT
Wow!!!
thank you for this. It's leading me into the right direction.
thanks!!!
> "Anon" <myno@my.net> kirjoitti viestissä:Kb5Tf.629$nN2.181@fe04.lga...
>
[quoted text clipped - 12 lines]
>
> <snip>
SorrowMan - 19 Mar 2006 06:41 GMT
"Anon" <myno@my.net> kirjoitti viestissä:lZ5Tf.701$Vd3.413@fe07.lga...
> Wow!!!
>
> thank you for this. It's leading me into the right direction.
>
> thanks!!!
No problem. If you are using Visual basic instead, pretty much all same
apply, except that then in form load you would do
Me.Size = My.Settings.FormSize
And in form closing:
My.Settings.FormSize = Me.Size
My.Settings.Location = Me.Location
My.Settings.Save()
That should get you going :)
Josip Habjan - 19 Mar 2006 16:50 GMT
Hi,
See this: http://www.habjansoftware.com/config_library.aspx
it is free and source is included in downlaod
Regards,
Josip Habjan
url: http://http://www.habjansoftware.com
> Hi all:
>
[quoted text clipped - 26 lines]
> think
> so", I am grateful for your time.