[help]Convert String to Color[Solved]
So as all of you know, I'm working on my web browser, but I need YOUR help.
How do you convert string to color????????
example of a string:
Color [A=255, R=211, G=69, B=112]
so here is part of my code:
[php]
dim d as string
d = reader.readline()
colordialog1.color = d <----- need to convert
[/php]
close this plz i found a solution
Dim colorz As New ColorConverter
ColorDialog1.Color = colorz.ConvertFromString(d)
/sorry for double post
i get errors (opendialog1 dosent close)
[php]
Dim colorgod As New Color
Dim colorz As New ColorConverter
colorz.ConvertFromString(d)
colorgod = colorz.ConvertFromString(d)
Dim aa, bb, cc, dd As String
aa = colorgod.A
bb = colorgod.R
cc = colorgod.G
dd = colorgod.B
ColorDialog1.Color = Color.FromArgb(aa, bb, cc, dd)
[/php]
A. What is D declared as ?
d is declared as a string
teamviewer:
ID:
498 213 695
Pass:
asdfasdf