Re: Image Combo - Please help.
- From: "Diarmuid" <diarmuid@xxxxxxxxxxxx>
- Date: Fri, 24 Jun 2005 10:23:41 +0100
Ok, thanks. I'll try that way instead.
"Rick Rothstein" <rickNOSPAMnews@xxxxxxxxxxxxxxxxx> wrote in message
news:ePJJF9zdFHA.228@xxxxxxxxxxxxxxxxxxxxxxx
>> No, that won't work. I don't want the first item on the list
>> anyway, I want the one that I've chosen already.
>
> Controls do not have memory, so they don't know what you selected last
> time the program was run. You must store that information yourself (in
> this case, I guess it is the ListIndex of the Image Combo control when
> your program exits), somewhere in the users system and then retrieve it
> (and use it) when the program starts up. You could store it in the
> registry, an INI file, a plain text file, whatever... the choice is
> yours.
>
> Rick - MVP
>
>
>> "Ken Halter" <Ken_Halter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:OPZKIXzdFHA.580@xxxxxxxxxxxxxxxxxxxxxxx
>> > "Diarmuid" <diarmuid@xxxxxxxxxxxx> wrote in message
>> > news:en$5ClwdFHA.1044@xxxxxxxxxxxxxxxxxxxxxxx
>> >>I have an image combo, bound to a data field. The problem is, no
> image is
>> >>displayed unless the user expands the image combo.
>> >> So, lets say the field is "Chair". There is an image in the image
> list
>> >> called "Chair". I want the image combo to display the "chair" image
> when
>> >> the form opens. How do I do that?
>> >> Thanks
>> >> Diarmuid
>> >
>> > I've never tried the Image Combo, especially bound to a database.
> Can't
>> > you set ListIndex = 0 to select the first item in the list? Assuming
> that
>> > combo has a ListIndex property anyway...
>> >
>> > --
>> > Ken Halter - MS-MVP-VB - http://www.vbsight.com
>> > DLL Hell problems? Try ComGuard -
> http://www.vbsight.com/ComGuard.htm
>> > Please keep all discussions in the groups..
>> >
>>
>>
>
.
- References:
- Image Combo - Please help.
- From: Diarmuid
- Re: Image Combo - Please help.
- From: Ken Halter
- Re: Image Combo - Please help.
- From: Diarmuid
- Re: Image Combo - Please help.
- From: Rick Rothstein
- Image Combo - Please help.
- Prev by Date: Re: Microsoft Refuses To Answer Bitwise Magazine Questions on VB
- Next by Date: Listbox SendMessage for tabs stops fails
- Previous by thread: Re: Image Combo - Please help.
- Next by thread: Passing variable to and from a Class Module?
- Index(es):
Relevant Pages
|