English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i use an ADC to get the voltage output from each color, but i have problem how to display it in visual basic 6.

2007-02-06 02:11:18 · 2 answers · asked by noel 1 in Computers & Internet Programming & Design

2 answers

You will have to convert the color into RGB or HEX to display it...I think HEX is VB's preference. For example: if your color is black then you would set label1.backcolor = "#000000"...assuming label1 is the control you want the color to display in.

Here's a website that gives you the HEX and RGB values of colors:

http://www.w3schools.com/html/html_colors.asp

2007-02-06 02:36:22 · answer #1 · answered by rod 6 · 0 0

inner maximum Sub Form_Activate() Tile.BackColor = vbGreen end Sub inner maximum Sub Timer1_Timer() Tile.suited = Tile.suited + 2 hundred end Sub inner maximum Sub Timer2_Timer() Tile.suited = Tile.suited - 260 end Sub 'era for Timer1 is 1000 'era for Timer2 is 1300 'Tile is Label 'not in all probability bypass upwards 1cm, sorry

2016-12-13 10:12:06 · answer #2 · answered by hergenroeder 4 · 0 0

fedest.com, questions and answers