Click here to Skip to main content
15,918,109 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: The type initializer for 'DataAccessLayer.Method' threw an exception. Pin
Simon P Stevens12-Nov-08 21:37
Simon P Stevens12-Nov-08 21:37 
QuestionHow to display text on the Datagridview Header? Pin
Soma Shekhar11-Nov-08 7:30
Soma Shekhar11-Nov-08 7:30 
AnswerRe: How to display text on the Datagridview Header? Pin
Dave Kreskowiak12-Nov-08 4:08
mveDave Kreskowiak12-Nov-08 4:08 
GeneralRe: How to display text on the Datagridview Header? Pin
Soma Shekhar12-Nov-08 5:21
Soma Shekhar12-Nov-08 5:21 
GeneralRe: How to display text on the Datagridview Header? Pin
Dave Kreskowiak12-Nov-08 12:16
mveDave Kreskowiak12-Nov-08 12:16 
GeneralRe: How to display text on the Datagridview Header? Pin
Paul Conrad12-Nov-08 12:45
professionalPaul Conrad12-Nov-08 12:45 
QuestionHow to save the Windows current view and reload when next time the application is started? Pin
Soma Shekhar11-Nov-08 7:20
Soma Shekhar11-Nov-08 7:20 
AnswerRe: How to save the Windows current view and reload when next time the application is started? Pin
Richard Blythe11-Nov-08 16:18
Richard Blythe11-Nov-08 16:18 
It sounds to me that you're on the right track. Saving state is really never easy. What I have done is created a UserPreference class for my apps. This is simply a class the encapsulates a the Dictionary<> object, which is new to .Net 2.0
What I do is init the dictionary like this:
C#: Dictionary<string,> preference = new Dictionary<string,>;

With the "preference" object, you can specify a unique string for the key and use it to store and retrieve as many items as necessary to restore the program state. This code model is not as messy but you will always have to do some "manual labor"!

Cheers,
Richard

I've used up all my sick days, so today I'm calling in dead.

GeneralRe: How to save the Windows current view and reload when next time the application is started? Pin
Soma Shekhar11-Nov-08 17:00
Soma Shekhar11-Nov-08 17:00 
GeneralRe: How to save the Windows current view and reload when next time the application is started? Pin
Richard Blythe11-Nov-08 17:18
Richard Blythe11-Nov-08 17:18 
QuestionHow to show a value in an Edit Textbox Pin
J_E_D_I10-Nov-08 8:35
J_E_D_I10-Nov-08 8:35 
AnswerRe: How to show a value in an Edit Textbox Pin
Dave Kreskowiak10-Nov-08 12:58
mveDave Kreskowiak10-Nov-08 12:58 
Questionlistbox Pin
sram1510-Nov-08 0:22
sram1510-Nov-08 0:22 
AnswerRe: listbox Pin
ScottM112-Nov-08 1:23
ScottM112-Nov-08 1:23 
Questionhow to simulate the image layer , like the one in Photoshop Pin
Member 41517587-Nov-08 4:27
Member 41517587-Nov-08 4:27 
AnswerRe: how to simulate the image layer , like the one in Photoshop Pin
Ray Cassick7-Nov-08 4:43
Ray Cassick7-Nov-08 4:43 
GeneralRe: how to simulate the image layer , like the one in Photoshop Pin
Member 415175810-Nov-08 0:15
Member 415175810-Nov-08 0:15 
GeneralRe: how to simulate the image layer , like the one in Photoshop Pin
Thomas Stockwell10-Nov-08 1:16
professionalThomas Stockwell10-Nov-08 1:16 
GeneralRe: how to simulate the image layer , like the one in Photoshop Pin
Dave Kreskowiak10-Nov-08 3:12
mveDave Kreskowiak10-Nov-08 3:12 
QuestionHow to stop installation in Setup Project 2008? Pin
praful_udade6-Nov-08 20:44
praful_udade6-Nov-08 20:44 
QuestionAny way to purge a Dictionary of items meeting some criterion? Pin
supercat96-Nov-08 9:36
supercat96-Nov-08 9:36 
AnswerRe: Any way to purge a Dictionary of items meeting some criterion? Pin
PIEBALDconsult6-Nov-08 10:19
mvePIEBALDconsult6-Nov-08 10:19 
GeneralRe: Any way to purge a Dictionary of items meeting some criterion? Pin
supercat96-Nov-08 11:31
supercat96-Nov-08 11:31 
AnswerRe: Any way to purge a Dictionary of items meeting some criterion? Pin
Dave Kreskowiak6-Nov-08 10:23
mveDave Kreskowiak6-Nov-08 10:23 
GeneralRe: Any way to purge a Dictionary of items meeting some criterion? Pin
supercat96-Nov-08 11:14
supercat96-Nov-08 11:14 

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.