Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo Box Help

Status
Not open for further replies.

yodabro

Programmer
Jun 29, 2001
6
US
Im creating a program to create business cards and digital signitures. I want to use the Combo box to select the Background Images and another one for the Different layouts for how the cards will look. I'v looked around quite a bit, but can't seem to find any knowledgeable information on how to use the box. I can make the List, but what next?
I can either use images already on the Main form or get them from a file list. I just want to know how to get started!.....Yes I'm a rookie :cool:
 
Use the Change event of the combobox to determine when a selection is made:

Private Sub Combo1_Change()
Select Case Combo1.Text
Case "My Picture"
Picture1.Picture = LoadPicture("c:\Picture1.bmp")
Case "My Dog"
Picture1.Picture = LoadPicture("c:\Picture2.bmp")
End Select
End Sub

And so on. Let me know if you need any more detailed help :) Best Regards and many Thanks!
Michael G. Bronner X-)

"They who drink beer will think beer." Washington Irving
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top