Presentation is loading. Please wait.

Presentation is loading. Please wait.

CSC 230 (Blum)1 Getting a List of Colors. CSC 230 (Blum)2 Imagine a program in which you want a list of colors in a ComboBox.

Similar presentations


Presentation on theme: "CSC 230 (Blum)1 Getting a List of Colors. CSC 230 (Blum)2 Imagine a program in which you want a list of colors in a ComboBox."— Presentation transcript:

1 CSC 230 (Blum)1 Getting a List of Colors

2 CSC 230 (Blum)2 Imagine a program in which you want a list of colors in a ComboBox

3 CSC 230 (Blum)3 Do a search on “color names” or something similar

4 CSC 230 (Blum)4 Copy the table you find.

5 CSC 230 (Blum)5 Paste it into Excel.

6 CSC 230 (Blum)6 Delete first row. Delete second and third columns.

7 CSC 230 (Blum)7 Copy the remaining column.

8 CSC 230 (Blum)8 Paste into Notepad. Eliminate blank lines at bottom.

9 CSC 230 (Blum)9 Highlighting list reveals that there is a space after each name.

10 CSC 230 (Blum)10 Copy the character at the end of each line. Go to Edit/Replace… Use Crtl-v to place the character in the Find what textbox and nothing in Replace with. Click Replace All.

11 CSC 230 (Blum)11 Go to the Items property of the ComboBox and paste the list into the String Collection editor dialog box. Click OK.


Download ppt "CSC 230 (Blum)1 Getting a List of Colors. CSC 230 (Blum)2 Imagine a program in which you want a list of colors in a ComboBox."

Similar presentations


Ads by Google