Computer Science Canada

Combo Boxes

Author:  Matt_872000 [ Wed Jun 01, 2005 12:46 pm ]
Post subject:  Combo Boxes

I need to figure out how I can get a combo box to insert its list # into a variable, I bet it is a very simple command but I can't seem to find anything on it... I have a project I'm working on that is due on thursday and it needs combo boxes, any help would be GREATLY appreciated.

Author:  Matt_872000 [ Thu Jun 02, 2005 12:50 pm ]
Post subject: 

Well, the due date has come and gone, and no reply, now it's just mroe of an interest thing, anyone know at all?

Author:  GlobeTrotter [ Thu Jun 02, 2005 3:26 pm ]
Post subject: 

Simply use the .ListIndex property.

Example:

VisualBASIC:

Dim iSelected As Integer
iSelected = cboTest.ListIndex


: