
01-20-2003, 03:23 PM
|
 |
Mexican Coder
|
|
Join Date: Jun 2002
Location: Monterrey, N.L., Mexico
Posts: 2,793
|
|
|
Yes.
First Add a ImageList with the number images that you wish (PC's pictures).
Second Add the Combobox (drop-down menu) with the same number of PC's in the same order of the ImageList pictures.
Third Add this code in the Click Event for the drop-down menu.
Explanation:
When you click in one Item into Combo1, generates the Click Event, and the ListIndex property of the combo1 is the number of PC clicked. Because ListIndex start the counting in 0 and the ListImages starts in 1, then add 1 to the ListIndex.
Example:
Combo1 items itm # :
- IMB PC 0
-Dell PC 1
-Compaq PC 2
ImageList Images itm #:
-IMB Picture 1
-Dell Picture 2
-Comapq Picture 3
when you click Dell PC ListIndex = 1, and add 1 = 2, this number correspond into ListImages to DellPC.
I hope make sense.
|
__________________
Mikecrosoft.NET
* If I stop to ask I will stop to learn
* Just I know that I don't know nothing
|