Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
GeneralVisual style icons / bitmaps Pin
Anonymous2-May-05 5:45
Anonymous2-May-05 5:45 
GeneralRe: Visual style icons / bitmaps Pin
Judah Gabriel Himango2-May-05 7:05
sponsorJudah Gabriel Himango2-May-05 7:05 
GeneralRe: Visual style icons / bitmaps Pin
MoustafaS2-May-05 8:49
MoustafaS2-May-05 8:49 
GeneralEasy file I/O Pin
briggs_w2-May-05 4:58
briggs_w2-May-05 4:58 
GeneralRe: Easy file I/O Pin
Heath Stewart2-May-05 5:11
protectorHeath Stewart2-May-05 5:11 
GeneralRe: Easy file I/O Pin
Marc Clifton2-May-05 5:24
mvaMarc Clifton2-May-05 5:24 
General... also ... Pin
Marc Clifton2-May-05 5:26
mvaMarc Clifton2-May-05 5:26 
GeneralRe: Easy file I/O Pin
briggs_w5-May-05 5:50
briggs_w5-May-05 5:50 
Thanks, Heath, Marc! Serialization is exactly what I wanted.

I'm having this problem using it:

[Serializable]
public class Superclass ...

[Serializable]
public class Subclass: Superclass ...
{
[Nonserializable]
private Bitmap bigThing = bitmap ("bigfile.bmp");
}

...
//mySubclassObject already exists
IFormatter formatter = new BinaryFormatter();
mySubclassObject = (visualBoard) formatter.Deserialize(s);

So when I do this, I successfully load the parts I want . . . but the bitmap is of course not loaded, and mySubclassObject is not displayable. Before I start this chunk of code, it knows where the bitmap is.

I also tried moving this deserialization code into a method of Subclass, so I could then remind it where the bitmap is, but then I can't deserialize into "this" because "this" is read-only.

Thanks for all--
GeneralAccess a flat file at http location Pin
mrinmayeek2-May-05 4:27
mrinmayeek2-May-05 4:27 
GeneralRe: Access a flat file at http location Pin
Heath Stewart2-May-05 5:12
protectorHeath Stewart2-May-05 5:12 
GeneralControl Instantiation Pin
terrier_jack2-May-05 4:25
terrier_jack2-May-05 4:25 
GeneralRe: Control Instantiation Pin
Marc Clifton2-May-05 5:08
mvaMarc Clifton2-May-05 5:08 
GeneralRe: Control Instantiation Pin
MoustafaS2-May-05 8:54
MoustafaS2-May-05 8:54 
GeneralHTML control Pin
Anonymous2-May-05 3:39
Anonymous2-May-05 3:39 
GeneralRe: HTML control Pin
Heath Stewart2-May-05 5:16
protectorHeath Stewart2-May-05 5:16 
QuestionHow to Connect Managed and UnManaged code for Socket Programming Pin
Shashidharreddy2-May-05 3:08
Shashidharreddy2-May-05 3:08 
AnswerRe: How to Connect Managed and UnManaged code for Socket Programming Pin
S. Senthil Kumar2-May-05 3:51
S. Senthil Kumar2-May-05 3:51 
AnswerRe: How to Connect Managed and UnManaged code for Socket Programming Pin
Dave Kreskowiak2-May-05 4:03
mveDave Kreskowiak2-May-05 4:03 
General.Net Remoting problem Pin
sokettepower2-May-05 2:23
sokettepower2-May-05 2:23 
GeneralRe: .Net Remoting problem Pin
Heath Stewart2-May-05 5:36
protectorHeath Stewart2-May-05 5:36 
GeneralRe: .Net Remoting problem Pin
sokettepower2-May-05 21:37
sokettepower2-May-05 21:37 
GeneralProperty grid tutorial Pin
Anonymous2-May-05 2:15
Anonymous2-May-05 2:15 
GeneralRe: Property grid tutorial Pin
Heath Stewart2-May-05 5:18
protectorHeath Stewart2-May-05 5:18 
GeneralJoinMulticastGroup Pin
udir2-May-05 2:06
udir2-May-05 2:06 
GeneralRe: JoinMulticastGroup Pin
leppie2-May-05 3:13
leppie2-May-05 3:13 

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.