Thanks for the tips on how to populate a ListBox at runtime. I created a C++ 
dll to read a file on disc to populate the items in the listbox and it is 
working good for me now.
When my list box is populated at runtime, how do I ensure that the first item 
listed is highlighted?

(Might be a stupid question, but I am just not able to get that to work - I 
have tried setting the ListBox property to the first item, but that doesn't 
work either)

Thanks!
Uma-

-----Original Message-----
From: Dominique Louis [mailto:dominique.lo...@amxeurope.com] 
Sent: Monday, October 19, 2009 9:06 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How to populate a list box in a msi dialog 
duringruntime

Thanks for pointing out the EnsureTable tag. I'll use that from now on.
Much cleaner.

-----Original Message-----
From: Alex Cater [mailto:alex.ca...@apdcomms.com] 
Sent: 19 October 2009 11:03
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How to populate a list box in a msi dialog
duringruntime



Dominique Louis wrote:
> 
> There must be at least 1 dummy ListItem, otherwise the appropriate
table
> will not be created.
> 

The  http://wix.sourceforge.net/manual-wix2/wix_xsd_ensuretable.htm
EnsureTable  element can be used to cleanly accomplish this:

e.g. <EnsureTable Id="***TableName***"/>
-- 
View this message in context:
http://n2.nabble.com/How-to-populate-a-list-box-in-a-msi-dialog-during-r
untime-tp3811329p3848166.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------
------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
AMX

AMX UK
Auster Road
Clifton Moor
York, North Yorkshire
United Kingdom
YO30 4GD

+44 (0) 1904 343100     office
+44 (0) 1904 343101     fax

AMX South
6th Floor Salisbury House
London Wall
London
United Kingdom
EC2M 5QQ

+44 (0) 2076 529450     office
+44 (0) 8701 991661     fax

AMX Belgium
Boerenkrijglaan, 96a
B-2260
Westerlo
Belgium


+ 32 (0) 1454 2763      office
+ 32 (0) 1454 2766      fax

######################################################################
Attention: 
This e-mail message is privileged and confidential. If you are not the 
intended recipient please delete the message and notify the sender. 
Any views or opinions presented are solely those of the author.

This email was scanned and cleared by NetIQ MailMarshal.
######################################################################

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to