|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Using the color pallette
Hi
Can any one please tell me how I can select a different color back ground for a text field, I would like to be able to call up the color pallette and select a color and have it assigned to a text field as backcolor, when the program is running. Thanks |
|
#2
|
|||
|
|||
|
You can reference the foreground and background colors of the text field. Do you need assistance with the syntax?
|
|
#3
|
|||
|
|||
|
Yes can you please help me with the syntax.
|
|
#4
|
|||
|
|||
|
txtField.BackColor = &H00######&
where <######> is the hex representation of the desired color. You can grab some colors from here. http://www.immigration-usa.com/html_colors.html ... Let me know if you still have questions. |
|
#5
|
|||
|
|||
|
Thanks for your reply. I still am not sure how to transfer the selected color from the color pallete to the text field back ground.
|
|
#6
|
|||
|
|||
|
so you want to call the color pallete somehow, select a color, and then have it change the background color of the text box all dynamically at run time then?
victorpendleton's showing you how to do it as you're programming it. when the color pallete returns a color you just set txtField.BackColor = to whatever the pallete returns assuming it's returning that field correctly..... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Using the color pallette |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|