Click here to Skip to main content
15,913,587 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Very simple combobox trouble Pin
Nikz223-Feb-10 6:54
Nikz223-Feb-10 6:54 
AnswerRe: Very simple combobox trouble Pin
Luc Pattyn23-Feb-10 11:26
sitebuilderLuc Pattyn23-Feb-10 11:26 
GeneralRe: Very simple combobox trouble Pin
Nikz223-Feb-10 12:10
Nikz223-Feb-10 12:10 
QuestionSave application state and reload it at restart Pin
adoerig22-Feb-10 2:31
adoerig22-Feb-10 2:31 
AnswerRe: Save application state and reload it at restart Pin
Dimitri Witkowski22-Feb-10 3:15
Dimitri Witkowski22-Feb-10 3:15 
AnswerRe: Save application state and reload it at restart Pin
Not Active22-Feb-10 3:18
mentorNot Active22-Feb-10 3:18 
AnswerRe: Save application state and reload it at restart Pin
Dave Kreskowiak22-Feb-10 3:35
mveDave Kreskowiak22-Feb-10 3:35 
AnswerRe: Save application state and reload it at restart Pin
Eddy Vluggen23-Feb-10 7:17
professionalEddy Vluggen23-Feb-10 7:17 
adoerig wrote:
With application state i mean all objects of the application, text entered in forms, items in tree view etc.


Be carefull there; you'd reload the text in the form on the next application-start, as opposed to the data as present in the persistence-store. If that store is a multi-user database, chances are that someone alters the data and it would be different from what was "on screen" the last time.


adoerig wrote:
How can i do that in an easy way?


Sounds like you want two things; caching data and saving state, am I right? It might make sense for form-positions, but I wouldn't serialize the contents of a memento.

An "easy" way would be to have a single class that represents the state of the form and it's contents. That would at least be easier than looping all controls and asking them for their internal state. Alternatively, you could mark classes or properties with custom attributes to identify them as 'having an internal state that needs to be persisted' and serialize the lot.
I are Troll Suspicious | :suss:

AnswerRe: Save application state and reload it at restart Pin
jimclack26-Feb-10 9:55
jimclack26-Feb-10 9:55 
GeneralSMS HELP Pin
mbadi20-Feb-10 8:50
mbadi20-Feb-10 8:50 
GeneralRe: SMS HELP Pin
Abhinav S20-Feb-10 13:45
Abhinav S20-Feb-10 13:45 
GeneralRe: SMS HELP Pin
Bharat Jain25-Feb-10 2:35
Bharat Jain25-Feb-10 2:35 
QuestionEdit mode in oledb connection Pin
akosidandan20-Feb-10 4:47
akosidandan20-Feb-10 4:47 
AnswerRe: Edit mode in oledb connection Pin
Not Active20-Feb-10 5:05
mentorNot Active20-Feb-10 5:05 
GeneralRe: Edit mode in oledb connection Pin
akosidandan20-Feb-10 5:11
akosidandan20-Feb-10 5:11 
GeneralRe: Edit mode in oledb connection Pin
Not Active20-Feb-10 6:54
mentorNot Active20-Feb-10 6:54 
GeneralRe: Edit mode in oledb connection Pin
Nandan Basak20-Feb-10 9:10
Nandan Basak20-Feb-10 9:10 
GeneralRe: Edit mode in oledb connection Pin
Not Active20-Feb-10 9:41
mentorNot Active20-Feb-10 9:41 
QuestionOpen source ide Pin
srikantha_nagaraj20-Feb-10 0:43
srikantha_nagaraj20-Feb-10 0:43 
AnswerRe: Open source ide Pin
Eddy Vluggen20-Feb-10 0:53
professionalEddy Vluggen20-Feb-10 0:53 
GeneralRe: Open source ide Pin
thatraja20-Feb-10 3:41
professionalthatraja20-Feb-10 3:41 
GeneralRe: Open source ide Pin
Kevin McFarlane20-Feb-10 5:15
Kevin McFarlane20-Feb-10 5:15 
Questionreading a file from a remote computer using UNC in C# console app. Pin
thivya n19-Feb-10 6:02
thivya n19-Feb-10 6:02 
AnswerRe: reading a file from a remote computer using UNC in C# console app. Pin
The Man from U.N.C.L.E.19-Feb-10 6:29
The Man from U.N.C.L.E.19-Feb-10 6:29 
GeneralRe: reading a file from a remote computer using UNC in C# console app. Pin
thivya n1-Mar-10 1:16
thivya n1-Mar-10 1:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.