Click here to Skip to main content
15,905,136 members
Home / Discussions / C#
   

C#

 
Questioninterface: how to indicate there needs to be a default constructor? Pin
devvvy21-Jan-09 23:13
devvvy21-Jan-09 23:13 
AnswerRe: interface: how to indicate there needs to be a default constructor? Pin
DaveyM6921-Jan-09 23:25
professionalDaveyM6921-Jan-09 23:25 
AnswerRe: interface: how to indicate there needs to be a default constructor? Pin
Pete O'Hanlon21-Jan-09 23:38
mvePete O'Hanlon21-Jan-09 23:38 
AnswerRe: interface: how to indicate there needs to be a default constructor? Pin
Ennis Ray Lynch, Jr.22-Jan-09 2:56
Ennis Ray Lynch, Jr.22-Jan-09 2:56 
QuestionSaving form or panel as an object Pin
Naveed72721-Jan-09 22:44
Naveed72721-Jan-09 22:44 
AnswerRe: Saving form or panel as an object Pin
musefan21-Jan-09 22:52
musefan21-Jan-09 22:52 
GeneralRe: Saving form or panel as an object Pin
Naveed72721-Jan-09 22:54
Naveed72721-Jan-09 22:54 
GeneralRe: Saving form or panel as an object Pin
Dave Kreskowiak22-Jan-09 2:06
mveDave Kreskowiak22-Jan-09 2:06 
You can't do this. A Form is not serializable, as well as the controls on it may not all be serializable either.

You have to write your own serializer to do something like this, where you provide the code to save whatever property values of the form, and all the child controls, required to recreate the objects using just that data.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




AnswerRe: Saving form or panel as an object Pin
DaveyM6921-Jan-09 23:15
professionalDaveyM6921-Jan-09 23:15 
GeneralRe: Saving form or panel as an object Pin
Naveed72721-Jan-09 23:19
Naveed72721-Jan-09 23:19 
GeneralRe: Saving form or panel as an object Pin
Tom Deketelaere21-Jan-09 23:27
professionalTom Deketelaere21-Jan-09 23:27 
GeneralRe: Saving form or panel as an object Pin
Naveed72721-Jan-09 23:35
Naveed72721-Jan-09 23:35 
GeneralRe: Saving form or panel as an object Pin
Tom Deketelaere21-Jan-09 23:59
professionalTom Deketelaere21-Jan-09 23:59 
GeneralRe: Saving form or panel as an object Pin
DaveyM6921-Jan-09 23:48
professionalDaveyM6921-Jan-09 23:48 
GeneralRe: Saving form or panel as an object Pin
Naveed72722-Jan-09 0:13
Naveed72722-Jan-09 0:13 
GeneralRe: Saving form or panel as an object Pin
DaveyM6922-Jan-09 0:40
professionalDaveyM6922-Jan-09 0:40 
AnswerRe: Saving form or panel as an object [modified] Pin
moon_stick22-Jan-09 0:11
moon_stick22-Jan-09 0:11 
GeneralRe: Saving form or panel as an object Pin
Naveed72722-Jan-09 1:20
Naveed72722-Jan-09 1:20 
QuestionHow to avoid stack overflow ? Pin
Spunky Coder21-Jan-09 22:13
Spunky Coder21-Jan-09 22:13 
AnswerRe: How to avoid stack overflow ? Pin
Pete O'Hanlon21-Jan-09 22:40
mvePete O'Hanlon21-Jan-09 22:40 
AnswerRe: How to avoid stack overflow ? Pin
#realJSOP22-Jan-09 0:14
professional#realJSOP22-Jan-09 0:14 
GeneralRe: How to avoid stack overflow ? Pin
S. Senthil Kumar22-Jan-09 3:05
S. Senthil Kumar22-Jan-09 3:05 
AnswerRe: How to avoid stack overflow ? Pin
Guffa22-Jan-09 0:35
Guffa22-Jan-09 0:35 
GeneralRe: How to avoid stack overflow ? Pin
Spunky Coder26-Jan-09 22:34
Spunky Coder26-Jan-09 22:34 
GeneralRe: How to avoid stack overflow ? Pin
Guffa27-Jan-09 1:22
Guffa27-Jan-09 1:22 

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.