On Sat, 08 Dec 2007 08:49:30 -0800, Rinaldo
<zw*************@hotmail.com.nospamwrote:
"Morten Wennevik [C# MVP]" <Mo************@hotmail.comschreef in
bericht news:op.t2y5snebdj93y5@ubuan...
>>
You have mixed FromArgh with ToArgb
Color redColor = Color.FromName("Red");
int redValue = redColor.ToArgb();
Color newRedColor = Color.FromArgb(redValue);
I have:
Color kl = BackColor;
kleur = Color.ToArgb(kl);
binFavorietWriter.Write(kleur);
But does'nt work. I need to have the backcolor of the dialog to int and
write it to disk. (I ám a beginner)
And what doesn't work? I mean, I know the answer but really...you need to
get into the habit of reading and understanding the compiler errors. You
also need to post specific error messages when asking questions about
them, not just write "but doesn't work".
As for this specific problem, look more closely at Morten's code. Copy
and paste it into your application if you have to. There's a very
specific difference between what he wrote, and what you managed to type in
to your own code. It's a critical difference, and I'm sure the compiler
is doing a decent job explaining it to you.
Pete