By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,084 Members | 1,969 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,084 IT Pros & Developers. It's quick & easy.

Application setting question

P: n/a
I came across the application setting feature today and it is pretty
cool. I would like to know if someone can help me in the following
situation.
In my current project, On form closing I take the current size of the
windows form and its position and store them as serialized object per
user. Next time when the user login in, I read corresponding serialized
object and show the windows as when they last exist.
It looks like application setting can do this for me, instead of me
coding all these logic.

I created a new project and added a new field called size and type
system.drawing.size and scope is user and default value is 400,400

On form closing, I did, Save also. In the initialising for the form, I
change the size of the form from the app setting. No errors but after I
change the size of the window and close it is not saving the new size.
does anyone know what might be I am doing wrong??

Sep 4 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
my mistake, I didn't capture the changed values in their corresponding
events.
DBC User wrote:
I came across the application setting feature today and it is pretty
cool. I would like to know if someone can help me in the following
situation.
In my current project, On form closing I take the current size of the
windows form and its position and store them as serialized object per
user. Next time when the user login in, I read corresponding serialized
object and show the windows as when they last exist.
It looks like application setting can do this for me, instead of me
coding all these logic.

I created a new project and added a new field called size and type
system.drawing.size and scope is user and default value is 400,400

On form closing, I did, Save also. In the initialising for the form, I
change the size of the form from the app setting. No errors but after I
change the size of the window and close it is not saving the new size.
does anyone know what might be I am doing wrong??
Sep 4 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.