ListView Control

P

Paul J. Lay

I am wondering if it is possible to easily duplicate the ListView control
behavior in the Windows explorer when a new folder is defined. I am talking
about the scenario where the user wants to create a new folder, the control
displays a folder called New Folder which is highlighted inside a rectangle
so that the user can easily change the name of New Folder. That is a really
slick interface but I know that Microsoft is famous for having slick
interfaces that are very difficult for most developers to implement. I am
wondering if the rectangle is a special owner-drawn customized
implementation. Please advise. Thanks for your help.

Best Regards,

Paul J. Lay
 
L

Lloyd Sheen

What you are looking for is the LabelEdit property of the listview.

There are some caveats so it would be best to read the MSDN docs on this.

I don't think you can do exactly what you want but you can create a listview
item that the user can modify. There were methods in Classic VB and C++ to
start the editing process but I cannot find the same in dot.net.

Lloyd Sheen
 
L

Lloyd Sheen

The method I was thinking of is the BeginEdit method of the ListViewItem.
Create your item with the default text and then call BeginEdit to start the
editing by the user.

Lloyd Sheen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top