SetFocus ListBox Cell

Is there a way to set focus to a cell in a list box?

Do you mean like a cursor on an individual cell instead of the selected row that the ListBox normally shows?

Correct!

I typically handle it with a subclass of the ListBox that adds a few properties and methods I need. The main properties being Row_Current and Col_Current. Keep track of those in the Cell and Mouse events, then use them in the Paint events to draw your cursor.

Thanks.

Does EditCell do what you want?

You are right. I was doing a EditCell on 2 an 3 and had them in that order, and wanted cell 2 selected. Changed the order and now it does what I wanted.

Simple. Thanks Tim.

Great, Jim. I thought you were looking for a cursor that moves around the grid like Excel. Glad you got it worked out OK.