UdoScheuvens
Programmer
Hello,
I would like to access some text selection properties of a listview item while editing the item.
Background:
The item contains a file name. When starting to edit the item text, the whole text is pre-selected. Now I would like to change the pre-selection so that only the file name without extension is selected. This way I would like to avoid that the extension gets occasionally lost. That's also the way the Windows Explorer behaves in Windows 7.
The ListViewItem object doesn't contain any properties or methods to achieve this, but I'm rather sure that it hosts a textbox control with standard textbox features. Does anybody know a way to access this control or to solve my problem in any other way?
Udo
I would like to access some text selection properties of a listview item while editing the item.
Background:
The item contains a file name. When starting to edit the item text, the whole text is pre-selected. Now I would like to change the pre-selection so that only the file name without extension is selected. This way I would like to avoid that the extension gets occasionally lost. That's also the way the Windows Explorer behaves in Windows 7.
The ListViewItem object doesn't contain any properties or methods to achieve this, but I'm rather sure that it hosts a textbox control with standard textbox features. Does anybody know a way to access this control or to solve my problem in any other way?
Udo