List view

  • Thread starter Thread starter sonali_reddy123
  • Start date Start date
S

sonali_reddy123

Hi all,

I am having a problem regarding use of a listview in VB.NET
application.

Actually I want my listview should behave like a explorer so that
If by using a menu If I select an option "New Folder" then will
create a folder with a default name as "New Folder".
Currently I can display an Icon for a folder with an empty string
In place of its name.
Is there any way that it should display the folder with a default
name as New folder with its lable set to editable so that i can
change it to whatever name I want.


'here is some part of code
on my menu click for new I have written like

lvItem = lstFMLocal.Items.Add("") 'lstFMlocal my listview
where insert

lvItem.BeginEdit()

'and in the afterLabelEdit event I am actaully adding the folder
'with a user specified in my directory.

Any help is invitable
 
Hi all,

I am having a problem regarding use of a listview in VB.NET
application.

Actually I want my listview should behave like a explorer so that
If by using a menu If I select an option "New Folder" then will
create a folder with a default name as "New Folder".
Currently I can display an Icon for a folder with an empty string
In place of its name.
Is there any way that it should display the folder with a default
name as New folder with its lable set to editable so that i can
change it to whatever name I want.


'here is some part of code
on my menu click for new I have written like

lvItem = lstFMLocal.Items.Add("") 'lstFMlocal my listview
where insert

Can't you just change this to

lvItem = lstFMLocal.Items.Add("New folder")

?
 

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

Back
Top