ListView and File renaming



Hopefully someone can help,

I have a listview box where I display my desired files. I single click on
the desired file to be renamed and I rename it with a new name. My problem
arises when the new name gets displayed through refreshing of my loop and
display function. The problem is that when, if I rename the last file entry,
everything appears to display fine. If I rename a file above the last entry
(bottom entry), two of the new file names appear and the last file entry
gets pushed out of the listview or disappears. After renaming, with in my
folder where the files reside, the file names are exactly as they should be
and the rename files are displaying the new names. The problem is just
within the displaying them.

Following is a sample of my code:
----------
private void lvIndivFileConversion_AfterLabelEdit(object sender,
System.Windows.Forms.LabelEditEventArgs e)
{
try
{
File.Move(Path.Combine(currentFolderPath,
this.lvIndivFileConversion.FocusedItem.Text),
Path.Combine(currentFolderPath, e.Label.ToString()));
DisplayInfo(currentFolderPath);
}
catch
{
}
}
----------




I am coding in C#. Any and all help is appreciated

MikeY



.



Relevant Pages

  • Re: Logfile name
    ... PPF translate specified PPF logical name to file specification ... If it is a record oriented device, ... of using the rsa returned by $display, ... name will be correct if the file was renamed using the RENAME ...
    (comp.os.vms)
  • Question about importing Exchange 5.5 address book into Exchange 2003
    ... I've got as far as exporting the list from 5.5 to a CSV file and moved this ... need to rename some of the fields so they're in AD format. ... GAL with their smtp email address and display name. ...
    (microsoft.public.exchange.admin)
  • ListView and File movement
    ... I have a listview box where I display my desired files. ... the desired file to be renamed and I rename it with a new name. ... The problem is that when, if I rename the last file entry, ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Upgrade from Exchange 5.5
    ... It indicates that you can change the org name as you upgrade (essentially ... And here is the article on the invalid characters in Exchange 5.5 ... It indicates changing the display name in Exchange 5.5 ... > Suggestion is to rename our domain; ...
    (microsoft.public.exchange2000.active.directory.integration)