Click here to Skip to main content
16,005,473 members
Home / Discussions / C#
   

C#

 
GeneralSending mail with HTML link in it Pin
Tartampion23-Sep-03 9:35
Tartampion23-Sep-03 9:35 
GeneralRe: Sending mail with HTML link in it Pin
Marshall Rosenstein23-Sep-03 9:44
Marshall Rosenstein23-Sep-03 9:44 
GeneralRe: Sending mail with HTML link in it Pin
Tartampion23-Sep-03 13:03
Tartampion23-Sep-03 13:03 
GeneralBinding Manger Woes Pin
Wjousts23-Sep-03 8:02
Wjousts23-Sep-03 8:02 
GeneralRe: Binding Manger Woes Pin
Wjousts23-Sep-03 10:43
Wjousts23-Sep-03 10:43 
GeneralRe: Binding Manger Woes Pin
Wjousts23-Sep-03 10:47
Wjousts23-Sep-03 10:47 
GeneralSerialize only 1 field: Panel Pin
pahluwalia23-Sep-03 6:22
pahluwalia23-Sep-03 6:22 
GeneralRe: Serialize only 1 field: Panel Pin
Heath Stewart23-Sep-03 6:43
protectorHeath Stewart23-Sep-03 6:43 
There are a couple ways.

You could override the Panel, add the SerializationAttribute (it doesn't inherit) to it, then implement the ISerializable interface to override serialization (don't forget about the serialization constructor).

You could also use a ISerializationSurrogate (see docs for more details) which allows you to serialize a Type that isn't serializable. It's easy to use. After you create your formatter, set its SurrogateSelector property to an ISurrogateSelector instance, or - if already instantiated - simple add your surrogates. You could either do this for the pre-defined Panel class if you don't want to derive your own, or add surrogates for the types that aren't serializing (with one or more surrogates). Then just serialize or deserialize.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Serialize only 1 field: Panel Pin
pahluwalia23-Sep-03 6:55
pahluwalia23-Sep-03 6:55 
GeneralRe: Serialize only 1 field: Panel Pin
Heath Stewart23-Sep-03 8:31
protectorHeath Stewart23-Sep-03 8:31 
GeneralReceiving Input from other processes/OS (aka Standard In) Pin
AJB...23-Sep-03 5:13
AJB...23-Sep-03 5:13 
GeneralRe: Receiving Input from other processes/OS (aka Standard In) Pin
Heath Stewart23-Sep-03 5:55
protectorHeath Stewart23-Sep-03 5:55 
GeneralRe: Receiving Input from other processes/OS (aka Standard In) Pin
Blake Coverett23-Sep-03 6:51
Blake Coverett23-Sep-03 6:51 
GeneralRe: Receiving Input from other processes/OS (aka Standard In) Pin
AJB...23-Sep-03 7:20
AJB...23-Sep-03 7:20 
GeneralRe: Receiving Input from other processes/OS (aka Standard In) Pin
Blake Coverett23-Sep-03 8:05
Blake Coverett23-Sep-03 8:05 
GeneralRe: Receiving Input from other processes/OS (aka Standard In) Pin
Heath Stewart23-Sep-03 8:47
protectorHeath Stewart23-Sep-03 8:47 
GeneralNewbie in C# Pin
Member 59611223-Sep-03 4:42
Member 59611223-Sep-03 4:42 
GeneralRe: Newbie in C# Pin
Heath Stewart23-Sep-03 6:02
protectorHeath Stewart23-Sep-03 6:02 
GeneralRe: Newbie in C# Pin
Michael P Butler23-Sep-03 6:44
Michael P Butler23-Sep-03 6:44 
GeneralSystem.UnauthorizedAccessException Pin
ich_bins23-Sep-03 4:29
ich_bins23-Sep-03 4:29 
GeneralControl Designer & Child Controls Issue Pin
scott@otech.com23-Sep-03 4:14
scott@otech.com23-Sep-03 4:14 
GeneralRe: Control Designer & Child Controls Issue Pin
Heath Stewart23-Sep-03 5:50
protectorHeath Stewart23-Sep-03 5:50 
GeneralRe: Control Designer & Child Controls Issue Pin
scott@otech.com23-Sep-03 6:20
scott@otech.com23-Sep-03 6:20 
GeneralRe: Control Designer & Child Controls Issue Pin
Heath Stewart23-Sep-03 6:47
protectorHeath Stewart23-Sep-03 6:47 
GeneralRe: Control Designer & Child Controls Issue Pin
scott@otech.com24-Sep-03 7:51
scott@otech.com24-Sep-03 7:51 

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.