Article Preview
Buy Now
COLUMN
Ask The Experts
Issue: 1.2 (October/November 2002)
Author: Seth Willits
Article Description: No description available.
Article Length (in bytes): 10,207
Starting Page Number: 32
Article Number: 1115
Resource File(s):
1115.zip Updated: 2013-03-11 19:07:56
Related Web Link(s):
http://"
Excerpt of article text...
Q: I want the user to be able to either select a cell in the listbox or to be able to edit the text in it. I tried setting the CellType to 3 but then I can't select the row.
A:
What you'll need to do is use the CellClick event to determine if the same cell was clicked twice within a set period of time and if so set that cell to be editable. This allows the user to click once to select the row and double click to edit the cell.
Since more than one listbox with these editable cells could exist in a window, the easiest and most efficent solution will require a listbox subclass. All of the code will go into the specified events of a listbox subclass called
EditCellsLB
.EditCellsLB Properties
...End of Excerpt. Please purchase the magazine to read the full article.