Click here to Skip to main content
15,896,154 members
Home / Discussions / C#
   

C#

 
Generalmultiline display in dataGridColumn textBox Pin
blankg6-May-04 12:24
blankg6-May-04 12:24 
GeneralRe: multiline display in dataGridColumn textBox Pin
Heath Stewart6-May-04 18:20
protectorHeath Stewart6-May-04 18:20 
GeneralRe: multiline display in dataGridColumn textBox Pin
blankg7-May-04 1:55
blankg7-May-04 1:55 
GeneralRemoting/Serializing Pin
markkow6-May-04 11:23
markkow6-May-04 11:23 
GeneralRe: Remoting/Serializing Pin
Heath Stewart6-May-04 11:58
protectorHeath Stewart6-May-04 11:58 
GeneralRe: Remoting/Serializing Pin
markkow6-May-04 12:15
markkow6-May-04 12:15 
GeneralRe: Remoting/Serializing Pin
Heath Stewart6-May-04 17:52
protectorHeath Stewart6-May-04 17:52 
GeneralRe: Remoting/Serializing Pin
markkow7-May-04 16:34
markkow7-May-04 16:34 
Thanks for your help Heath.

Through debugging I found out that ServerIdentity seems to be used by MarshalByRef, so when my code trys to serialize it, it won't allow it. From the .net help files I found this:
"CAUTION As a general design pattern, it would be unusual for a class to be both marked with the serializable attribute and extend MarshalByRefObject. Developers should think carefully about the possible serialization and remoting scenarios when combining these two characteristics..... For more details about serialization of classes that extend MarshalByRefObject see RemotingSurrogateSelector"

There is not a great deal of information about using RemotingSurrogateSelector, on the internet, or the .net help. So I have decided to do it a different way.

The class 'MyClass' is actually called SupremeHome and is the main class in my home automation program I'm writing, it holds collections of various objects. Each object I want to save will now implement ICloneable. SupremeHome will have a (non static) method called Save that will create a new SupremeHome object based on itself, using ICloneable.Clone(), then write the whole thing to disk with the given file name. I have tested it a bit and it works ok.
GeneralRe: Remoting/Serializing Pin
Heath Stewart8-May-04 19:18
protectorHeath Stewart8-May-04 19:18 
GeneralRe: Remoting/Serializing Pin
markkow9-May-04 5:40
markkow9-May-04 5:40 
GeneralToolBar.BackColor Pin
Anonymous6-May-04 10:37
Anonymous6-May-04 10:37 
GeneralRe: ToolBar.BackColor Pin
Heath Stewart6-May-04 11:51
protectorHeath Stewart6-May-04 11:51 
QuestionAcitveX equivalent in C# ? Pin
TigerNinja_6-May-04 8:35
TigerNinja_6-May-04 8:35 
AnswerRe: AcitveX equivalent in C# ? Pin
Heath Stewart6-May-04 8:40
protectorHeath Stewart6-May-04 8:40 
GeneralRe: AcitveX equivalent in C# ? Pin
TigerNinja_6-May-04 10:08
TigerNinja_6-May-04 10:08 
GeneralRe: AcitveX equivalent in C# ? Pin
Heath Stewart6-May-04 10:26
protectorHeath Stewart6-May-04 10:26 
AnswerRe: AcitveX equivalent in C# ? Pin
TigerNinja_6-May-04 9:09
TigerNinja_6-May-04 9:09 
GeneralSound- Two Events at a time Pin
MeterMan6-May-04 8:14
MeterMan6-May-04 8:14 
GeneralRe: Sound- Two Events at a time Pin
Heath Stewart6-May-04 8:29
protectorHeath Stewart6-May-04 8:29 
GeneralRe: Sound- Two Events at a time Pin
MeterMan6-May-04 12:15
MeterMan6-May-04 12:15 
GeneralRe: Sound- Two Events at a time Pin
Heath Stewart6-May-04 17:53
protectorHeath Stewart6-May-04 17:53 
GeneralRe: Sound- Two Events at a time Pin
MeterMan6-May-04 17:58
MeterMan6-May-04 17:58 
GeneralRe: Sound- Two Events at a time Pin
Heath Stewart6-May-04 18:01
protectorHeath Stewart6-May-04 18:01 
GeneralRe: Sound- Two Events at a time Pin
MeterMan6-May-04 13:25
MeterMan6-May-04 13:25 
GeneralRe: Sound- Two Events at a time Pin
Heath Stewart6-May-04 17:57
protectorHeath Stewart6-May-04 17:57 

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.