Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change item text selection in ListView

Status
Not open for further replies.

UdoScheuvens

Programmer
Apr 12, 2001
42
DE
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top