Listbox selection

Tech-Archive recommends: Fix windows errors by optimizing your registry



I'm trying to figure something out about listboxes, any help would be
appreciated...

Is there a difference between the way a row is selected by a user and the
way it is selected programmatically? The reason I ask is that when I click
on a row manually, it becomes highlighted (white text, black BG). When I
select one programmatically, it gains a border but does not become
highlighted. Is there a difference?

Here's the context:
I have a list of items that I want a user to be able to hit 'Y' or 'N' for.
After the user has hit one or the other, depending on the sort options
selected, the rowsource is requeried, which often moves the row just rated
to the bottom of the list. So, I want to save the index of the selected
row, then reselect that index so that the selected row stays in the same
place but the next item is selected.

I'm not sure if that's clear, but maybe someone can get me started.

Thanks again!
Joe


.



Relevant Pages

  • Re: Mighty trackpad?
    ... target ... target to hit is contextual menues. ... It basically means that single-fuction buttons on the mouse will always be faster than menus, not that menus in a near-cursor position are easier to hit than a menu arrayed across the edge of the screen. ... Contedtual menues change to work with the context at hand. ...
    (comp.sys.mac.advocacy)
  • Re: Mighty trackpad?
    ... >> target to hit is contextual menues. ... > not that menus in a near-cursor position are easier to hit than a menu ... >> Contedtual menues change to work with the context at hand. ... But the Edit menu also has a selection for "Compose ...
    (comp.sys.mac.advocacy)
  • =?iso-2022-jp?B?UmU6IBskQiRKJHMkOCRjJDMkaiRjITwbKEI=?=
    ... >> well, i'm back to reading some blogs, and i came across the following ... > And it appears that it has just hit the stands... ... > in this context means big hit, fad, craze, etc. I'm quite comfortable ... I admit this is the fourth and last meaning given. ...
    (sci.lang.japan)
  • Re: Mighty trackpad?
    ... is as easy or as hard to hit as Contextual Menu->Check Spelling... ... Nor the issues inhereted from a context menu's inconsistancies. ... Navigating and selecting menu items is no different in the main menu than it is in a contextual menu. ... It basically means that single-fuction buttons on the mouse will always be faster than menus, not that menus in a near-cursor position are easier to hit than a menu arrayed across the edge of the screen. ...
    (comp.sys.mac.advocacy)
  • Re: Group box border visibility control
    ... Hit alt-f11 to get to the VBE ... I am using the 'group box' command (Forms toolbar) to group multiple option ... has a line border and text that I do not want to see when I am in the ... box in Form Control, control tab, to 3D and the border greys out. ...
    (microsoft.public.excel.misc)