Wrox Programmer Forums
|
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 21st, 2005, 06:28 AM
Registered User
 
Join Date: Jun 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Image Combo binding

I need some help with the Image Combo. I have properties set as
DateSource = datPrimaryRS
DataField = CatgImage

CatgImage contains the name of the image in imagelist.
When the form loads, I do
Code:
Me.comCatgImage.ImageList = Me.imgCatg
Me.comCatgImage.ComboItems.Add , "Car1", "Car
Me.comCatgImage.ComboItems.Add , "Chair1", "Chair"
Now it displays the text correctly, but not the image. So when I go from record to record, the image in comCatgImage does not change. It only changes when I select a CatgImage.
How do I get the correct image in the combo box?
Thanks

Awesomo





Similar Threads
Thread Thread Starter Forum Replies Last Post
Binding Column Name to a Combo Box. jitu ADO.NET 3 June 27th, 2013 07:35 AM
Combo Box Complex Binding Example? pigparent VB Databases Basics 2 June 11th, 2008 12:08 PM
Binding a combo box to update a list view Amethyst1984 General .NET 0 February 28th, 2006 03:04 PM
binding recordset with combo problem emachines Access VBA 1 February 28th, 2005 04:10 PM
Weird Combo Box Binding Error [email protected] Pro VB.NET 2002/2003 0 October 8th, 2003 08:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.