Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Combo Boxes
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Matt_872000




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
Matt_872000




PostPosted: Thu Jun 02, 2005 12:50 pm   Post subject: (No 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?
GlobeTrotter




PostPosted: Thu Jun 02, 2005 3:26 pm   Post subject: (No subject)

Simply use the .ListIndex property.

Example:

VisualBASIC:

Dim iSelected As Integer
iSelected = cboTest.ListIndex
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: