I want to pull a string containing background color information from a database and dynamically set a form's background color.
When I try to cast the string as "drawing.color" it errors out. Here's an example"


dim backcolor as object

backcolor = ds.Tables("BColor").Rows(0).Item("BackColor")

Me.BackColor = CType(backcolor, System.Drawing.Color)


Any help would be appreciated.