SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    May 2001
    Location
    Houston, TX, USA
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cannot select item from a listbox

    I've got a Windows app with a listbox that has 5 items listed in it. I can select items 1 - 4, but when it gets to Item 5, Silk states that "Item 5 is not visible", though I can see it. When I do a GetEverything() on the listbox, all five selections are returned.

    Any ideas?

    Thanks in advance.

    ------------------

  2. #2
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Cannot select item from a listbox

    Read the items from the list box into an array and then view that array in debug mode. Make sure that item is in the array. If it is there, you can "get" its position and then select it by its item position.

    ------------------

  3. #3
    Senior Member
    Join Date
    Oct 1999
    Location
    Tyngsborough, MA
    Posts
    211
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Cannot select item from a listbox

    Select should scroll the item into view if it is not (I know you say you can see it but it's worth mentioning). There is also a method, ExposeItem(), which will also scroll a list item into view. Just something to try while debugging.

    ------------------

  4. #4
    Member
    Join Date
    May 2001
    Posts
    39
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Cannot select item from a listbox

    Get the list count and check if it returns the correct value.

    If it is returning a correct value then you can access the desired element by writing a simple loop !


    ------------------

 

 

Posting Permissions

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

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:56 AM.

Copyright BetaSoft Inc.