PC Review


Reply
Thread Tools Rate Thread

Application setting question

 
 
DBC User
Guest
Posts: n/a
 
      4th Sep 2006
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??

 
Reply With Quote
 
 
 
 
DBC User
Guest
Posts: n/a
 
      4th Sep 2006
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??


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application Setting Scott M. Microsoft ASP .NET 1 31st Jan 2008 10:56 PM
Basic design question for a distributed application - How to access application's data JB Microsoft VB .NET 4 31st Aug 2007 07:39 PM
A user setting / application question JM Microsoft Windows 2000 Active Directory 1 7th Aug 2006 02:53 PM
Folder view setting within an application: question Pam Windows XP General 1 28th Sep 2003 06:16 PM
Question on Application.CompanyName and Application.ProductName Tony Lin Microsoft Dot NET Framework 1 20th Jul 2003 10:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:10 PM.