Re: Image Combo - Please help.



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..
>> >
>>
>>
>


.



Relevant Pages

  • Re: How to modify program files in Vista?
    ... You must change your program to store ... If there is an application ini file that is common to all users there ... What Microsoft would like developers to do is to store the configuration ... subdirectory of the user's user profile folder. ...
    (microsoft.public.vc.mfc)
  • Re: How to modify program files in Vista?
    ... You must change your program to store ... If there is an application ini file that is common to all users there ... What Microsoft would like developers to do is to store the configuration ... subdirectory of the user's user profile folder. ...
    (microsoft.public.vc.mfc)
  • Re: ListIndex property is reset if I SetFocus
    ... I have several large database systems in use throughout our ... shouldn't need to refer to the controls listindex. ... ListIndex property of the ListBox is reset to -1 and I cannot retrieve ...
    (microsoft.public.access.formscoding)
  • Re: ListIndex property is reset if I SetFocus
    ... Doug Steele, Microsoft Access MVP ... shouldn't need to refer to the controls listindex. ... ListIndex property of the ListBox is reset to -1 and I cannot retrieve ...
    (microsoft.public.access.formscoding)
  • Re: Strange behavior with screens
    ... My best guess is that you need to delete the .ini file that sets the screen ... postion of the window screen controls. ... There is a free template ... I'm creating an application with forms using panel controls, ...
    (comp.lang.clarion)