[dba-VB] Combo box

Mike mjrobertson at iinet.net.au
Sat Apr 28 02:31:08 CDT 2007


John,

This was a very annoying issue when I started the move to .NET

Apart from buying custom controls, the only way I found to reproduce
multi-column combo/list boxes was to use a datagrid. 

Individual elements of the datagrid can then be accessed when a row or cell
is selected.

Regards,

Mike Robertson 

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby
Sent: Saturday, 28 April 2007 3:35 PM
To: dba-vb at databaseadvisors.com
Subject: [dba-VB] Combo box

I am running into the issue of how to display multiple lines in a combo box.
IIRC this is a "no can do" in the combos in VB.Net but there must be common
workarounds.  
 
For example I need to allow the user to select a zip code, but he really
needs to see the zip AND the city.  Furthermore my code is going to need to
load a record based on that zip code to get lat/long.
 
So, is there a way other than using a concatenation of the zip and the city
to display both in the combo?  If I do a concatenation, then I can no longer
use the zip to lookup a record in a recordset since it now has city data in
the string.
 
John W. Colby
Colby Consulting
www.ColbyConsulting.com
 
_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.463 / Virus Database: 269.6.1/777 - Release Date: 26/04/2007
3:23 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.463 / Virus Database: 269.6.1/777 - Release Date: 26/04/2007
3:23 PM
 



More information about the dba-VB mailing list