|
-
Jan 3rd, 2004, 06:33 AM
#1
Thread Starter
Lively Member
stupid color question [resolved]
hey i'm messing around with programatically setting colors and i'm trying to get the backcolor.toargb to work, heres what i got going ignore the registry thing thats all working, i just cant set the backcolor without the color.red for example i read up a bit and i guess i'm supposed to use the toArgB and fromArgB not getting it though
VB Code:
' save setting here
regKey.SetValue("Form", Me.BackColor.ToArgb)
VB Code:
'set setting here
Me.BackColor.FromArgb = regKey.GetValue("Form", "")
any hints? thanx
Last edited by NeonBurner; Jan 3rd, 2004 at 04:41 PM.
-
Jan 3rd, 2004, 06:38 AM
#2
-
Jan 3rd, 2004, 06:43 AM
#3
Thread Starter
Lively Member
then my regvalue is
Color [DarkGray]
then backcolor.fromname or anyhting wont set it 2 what i want, i get the proper hex value from toArgb (ffd4d0c8) but cant set the color from it
-
Jan 3rd, 2004, 06:49 AM
#4
Thread Starter
Lively Member
says fromArgb accepts integer value but
VB Code:
Dim x As Int32
x = Clng(regKey2.GetValue("Form", ""))
Me.BackColor.FromArgb = x
says " no accessible fromArgb excepts this number of arguements"
-
Jan 3rd, 2004, 07:55 AM
#5
yay gay
FromRGB is a function, not a variable or a property. That way you cant do FromRGB=value
\m/  \m/
-
Jan 3rd, 2004, 11:50 AM
#6
you should be doing this...
VB Code:
Me.BackColor = Color.FromArgb(regKey.GetValue("Form", ""))
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
-
Jan 3rd, 2004, 04:41 PM
#7
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|