I have a project with a TableView that has the cells of certain columns defined as editable since the content can change.
The problem is when the user is editing a row and uses either ENTER or an arrow key to move to the next editable cell, any existing text in the cell gets in the way and needs to be manually deleted. It's a little annoying to have to continually use the delete key, or double-click to select all the text. I'd like all the text to be selected when the cell is first entered via the keyboard, but I cannot figure out how to do that. The TableView.Activate event is raised when a cell is entered, and so I have tried the following: [code] Public Sub TableView1_Activate() Dim hTextBox As TextBox TableView1.Edit() hTextBox = TableView1.Editor hTextBox.Select() End [/code] (Note: TableView.Editor is a Control and hence does not have a Select method. But TableView.Edit uses a TextBox control by default to edit the cell.) But, it doesn't work. No error is raised, but the text is not selected. Any ideas? -- Lee __________ "Artificial Intelligence is no match for natural stupidity." ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user