I think no...

  • Thread starter Listview selected ??? via AccessMonster.com
  • Start date
L

Listview selected ??? via AccessMonster.com

I've a problem. I'm programming with winxp sp2+Access 2003 sp6.

I Need to SELECT an item on a listview ...

....
me.listview.listitems(X).selected=true
....


with this code then listview is selected only "internally" ...only when
I reclick on the listview the selected item become selected(color = blue)
....and this is not what i want!!!

How can I do for select (in blue color) directly without reclick on
listview the selected item ??

THX!
 
J

Jeff Boyce

Have you tried using the value of the listview (are you referring to an
Access listbox control?) instead of ListItem?
 
L

Listview selected ??? via AccessMonster.com

i'm using the listview control of Access..

sry... I've wrong..
I need to select a ROW on the listview..

...? how can I use the Value of the listview ?

(the class of the object is ListViewCtrl)
 
L

Listview selected ??? via AccessMonster.com

!!!!WEEE!!!

so,,,, i'm stupid .... I simply tried (after selected the listitems(x))
to give the focus me.listviewX.setfocus and the row is selected!

THX !!!
 
L

Listview selected ??? via AccessMonster.com

now I've another problem....
,,,the listview loose the focus when i got the focus on
an other object in the form...!

I think this is the ocx control made in this manner...

there is any solution at this problem ?


THX !
 
L

Listview selected ??? via AccessMonster.com

the flexgrid doesn't loose the focus when i click on other contrls...
 
D

Douglas J. Steele

Only one control can have focus, so if you click on another control, focus
has shifted. I think you're confusing highlighting a selected row with
having focus.
 
L

Listview selected ??? via AccessMonster.com

no... the flexgrid , for example , is always selected(row=blue)
when you click on another control... but the listview don't do it..
at this point I think it's the listview's control that don't permit this
type of operation..

THX
 
Top