Click here to Skip to main content
16,004,944 members
Home / Discussions / C#
   

C#

 
GeneralRe: simple Transparent problem Pin
Nick Parker20-Mar-04 7:20
protectorNick Parker20-Mar-04 7:20 
GeneralRe: simple Transparent problem Pin
Snowjim20-Mar-04 23:33
Snowjim20-Mar-04 23:33 
QuestionTaskbar informations? Pin
Morten Kristensen20-Mar-04 5:27
Morten Kristensen20-Mar-04 5:27 
AnswerRe: Taskbar informations? Pin
kaptaintens20-Mar-04 10:04
kaptaintens20-Mar-04 10:04 
GeneralRe: Taskbar informations? Pin
Morten Kristensen21-Mar-04 1:52
Morten Kristensen21-Mar-04 1:52 
GeneralRe: Taskbar informations? Pin
kaptaintens21-Mar-04 7:53
kaptaintens21-Mar-04 7:53 
GeneralBest way to save state (Windows Forms) Pin
profoundwhispers20-Mar-04 4:29
profoundwhispers20-Mar-04 4:29 
GeneralRe: Best way to save state (Windows Forms) Pin
Heath Stewart20-Mar-04 4:50
protectorHeath Stewart20-Mar-04 4:50 
Don't save to the registry with .NET applications. It's not a good practice for many reasons, especially deployment issues. Other than that, save to whatever file format you want. Binary serialiation is faster than XML, but XML gives you the ability to easily customize the state while the program is not running.

One other way - albeit more difficult - would be to implement a custom BindingManagerBase derivative that uses a file as a backing store and bind the properties of controls you want persisted. When they change, the binding manager is updated and your derivative class could save state immediately. This way, you don't have to poll and don't have to keep a timer, which is relatively inefficient since the state of your application might not have changed. See the documentation for the BindingManagerBase and Control.DataBindings in the .NET Framework SDK for more information.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Best way to save state (Windows Forms) Pin
Dave Kreskowiak20-Mar-04 5:49
mveDave Kreskowiak20-Mar-04 5:49 
GeneralRe: Best way to save state (Windows Forms) Pin
profoundwhispers20-Mar-04 22:35
profoundwhispers20-Mar-04 22:35 
GeneralWith MDI App child form Activated event to working Pin
Inpreet Singh20-Mar-04 4:09
Inpreet Singh20-Mar-04 4:09 
GeneralWith MDI App child form Activated event to working Pin
Anonymous20-Mar-04 4:05
Anonymous20-Mar-04 4:05 
Questionhow to capture a screen on a remote pc ? Pin
fu020-Mar-04 1:21
fu020-Mar-04 1:21 
AnswerRe: how to capture a screen on a remote pc ? Pin
Forrest Feather20-Mar-04 1:53
Forrest Feather20-Mar-04 1:53 
AnswerRe: how to capture a screen on a remote pc ? Pin
Heath Stewart20-Mar-04 4:45
protectorHeath Stewart20-Mar-04 4:45 
GeneralRe: how to capture a screen on a remote pc ? Pin
fu020-Mar-04 15:06
fu020-Mar-04 15:06 
AnswerRe: how to capture a screen on a remote pc ? Pin
Dave Kreskowiak20-Mar-04 5:55
mveDave Kreskowiak20-Mar-04 5:55 
GeneralJapanese Input Issue on the TreeListView program written by Mr. Thomas Caudal Pin
ybaba19-Mar-04 19:07
ybaba19-Mar-04 19:07 
GeneralRe: Japanese Input Issue on the TreeListView program written by Mr. Thomas Caudal Pin
Colin Angus Mackay20-Mar-04 1:14
Colin Angus Mackay20-Mar-04 1:14 
GeneralRe: Japanese Input Issue on the TreeListView program written by Mr. Thomas Caudal Pin
ybaba20-Mar-04 20:18
ybaba20-Mar-04 20:18 
QuestionExecuteNonQuery or using a dataset? Pin
Forrest Feather19-Mar-04 19:00
Forrest Feather19-Mar-04 19:00 
AnswerRe: ExecuteNonQuery or using a dataset? Pin
Mazdak19-Mar-04 22:17
Mazdak19-Mar-04 22:17 
AnswerRe: ExecuteNonQuery or using a dataset? Pin
Colin Angus Mackay20-Mar-04 1:24
Colin Angus Mackay20-Mar-04 1:24 
GeneralRe: ExecuteNonQuery or using a dataset? Pin
Forrest Feather20-Mar-04 1:47
Forrest Feather20-Mar-04 1:47 
GeneralUsing... before or after the Namespace Pin
v3ct0r19-Mar-04 12:07
v3ct0r19-Mar-04 12:07 

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.