Prev: Need "Jump Start" example of Using ForumService
Next: DbDataReader.HasRows - Whose Idea was that?
From: Zach on 26 May 2010 16:25 Is there a way to store a color in a file and later on retrieve it? If so, how is it done? Could you please give me a code example? Zach
From: Jeff Johnson on 26 May 2010 16:40 "Zach" <xx(a)yy.zz> wrote in message news:eJSnNGR$KHA.5392(a)TK2MSFTNGP06.phx.gbl... > Is there a way to store a color in a file and later on retrieve it? > If so, how is it done? Could you please give me a code example? You could use the Color.ToArgb() instance method to get an int, write that to your file, and then later read an int from the file and use the static Color.FromArgb() method to get your color back from that int.
From: Zach on 26 May 2010 17:36 "Jeff Johnson" <i.get(a)enough.spam> wrote in message news:eUiifOR$KHA.420(a)TK2MSFTNGP02.phx.gbl... > "Zach" <xx(a)yy.zz> wrote in message > news:eJSnNGR$KHA.5392(a)TK2MSFTNGP06.phx.gbl... > >> Is there a way to store a color in a file and later on retrieve it? >> If so, how is it done? Could you please give me a code example? > > You could use the Color.ToArgb() instance method to get an int, write that > to your file, and then later read an int from the file and use the static > Color.FromArgb() method to get your color back from that int. Thank you, Zach
|
Pages: 1 Prev: Need "Jump Start" example of Using ForumService Next: DbDataReader.HasRows - Whose Idea was that? |