|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
How to convert an RGB value to a long or a long to RGB? Hi, How to convert an RGB value to a long or a long to RGB? |
#2
| |||
| |||
Re: How to convert an RGB value to a long or a long to RGB? Try this! Code: 'Add 1 Command Button to your form. 'Insert the following code to your form: Private Sub Command1_Click() r = Val(InputBox$("Red Value")) B = Val(InputBox$("Blue Value")) G = Val(InputBox$("Green Value")) Lng$ = B * 65536 + G * 256 + r MsgBox Lng$ End Sub |
#3
| |||
| |||
Re: How to convert an RGB value to a long or a long to RGB? If you don't understand above example then try this demo! http://www.buygold.net/v02n04/v02n04.html I hope this helps you! |
![]() |
|
Tags: convert, long, rgb, value |
Thread Tools | Search this Thread |
|
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How long data on CD or DVD will last? | RajiI | Hardware Peripherals | 3 | 20-12-2011 03:12 PM |
How long will a HDD last if not used much? | Williamss | Hardware Peripherals | 4 | 02-12-2010 12:36 PM |
How long does os 4.0 take to load | Centaurs | Portable Devices | 6 | 13-07-2010 05:57 AM |
How to Convert IP Address to Long in ADO? | technika | Software Development | 5 | 16-02-2010 10:15 PM |
Usually 600 watt PSU will last for how long? | Zoey Mod | Hardware Peripherals | 7 | 15-01-2010 11:30 AM |