+ Reply to Thread
Results 1 to 3 of 3

Bug in multiselect listbox?

  1. #1
    Jos Vens
    Guest

    Bug in multiselect listbox?

    Hi,

    I have a listbox with the property multiselectextended. I want by default
    have one item selected. It only works when I set the property to
    multiselectsingle.

    Libra_FrmPrintRpt.lbKlas.ListIndex = Libra_FrmLogin.cbKlas.ListIndex
    'it works

    'Libra_FrmPrintRpt.lbKlas.MultiSelect = fmMultiSelectExtended
    'if I decomment this (or set the property in vba-form), it doesn't work
    anymore.

    Is this a bug, is there a workaround to select by default an item?

    Thanks
    Jos Vens



  2. #2
    Tom Ogilvy
    Guest

    Re: Bug in multiselect listbox?

    Libra_FrmPrintRpt.lbKlas.selected(Libra_FrmLogin.cbKlas.ListIndex) = True

    --
    Regards,
    Tom Ogilvy


    "Jos Vens" <jos.vens@pro.tiscali.be> wrote in message
    news:ubHhpSKLGHA.2216@TK2MSFTNGP09.phx.gbl...
    > Hi,
    >
    > I have a listbox with the property multiselectextended. I want by default
    > have one item selected. It only works when I set the property to
    > multiselectsingle.
    >
    > Libra_FrmPrintRpt.lbKlas.ListIndex = Libra_FrmLogin.cbKlas.ListIndex
    > 'it works
    >
    > 'Libra_FrmPrintRpt.lbKlas.MultiSelect = fmMultiSelectExtended
    > 'if I decomment this (or set the property in vba-form), it doesn't work
    > anymore.
    >
    > Is this a bug, is there a workaround to select by default an item?
    >
    > Thanks
    > Jos Vens
    >
    >




  3. #3
    Jos Vens
    Guest

    Re: Bug in multiselect listbox?

    Thanks Tom,

    it works perfect!

    Jos


    "Tom Ogilvy" <twogilvy@msn.com> schreef in bericht
    news:uzuivxLLGHA.2992@tk2msftngp13.phx.gbl...
    > Libra_FrmPrintRpt.lbKlas.selected(Libra_FrmLogin.cbKlas.ListIndex) = True
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    > "Jos Vens" <jos.vens@pro.tiscali.be> wrote in message
    > news:ubHhpSKLGHA.2216@TK2MSFTNGP09.phx.gbl...
    >> Hi,
    >>
    >> I have a listbox with the property multiselectextended. I want by default
    >> have one item selected. It only works when I set the property to
    >> multiselectsingle.
    >>
    >> Libra_FrmPrintRpt.lbKlas.ListIndex = Libra_FrmLogin.cbKlas.ListIndex
    >> 'it works
    >>
    >> 'Libra_FrmPrintRpt.lbKlas.MultiSelect = fmMultiSelectExtended
    >> 'if I decomment this (or set the property in vba-form), it doesn't work
    >> anymore.
    >>
    >> Is this a bug, is there a workaround to select by default an item?
    >>
    >> Thanks
    >> Jos Vens
    >>
    >>

    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1