?
Solved

File is locked using the FileOpen Dialogue

Posted on 2006-10-25
2
Medium Priority
?
246 Views
Last Modified: 2010-04-23
Hi,

When using the File open dialogue box within the dialogue box.. if you select the file and try to rename it says the file is locked even though it is not open. Any ideas to resolve this will be great!!!

Many Thanks

Josh
0
Comment
Question by:supersuny2k
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 2000 total points
ID: 17804937
It works for me...

Using VB.Net 2005 Express on a WinXP Pro machine.

I added an OpenFileDialog control and a button to a form:

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        OpenFileDialog1.ShowDialog()
    End Sub

I ran it, and clicked the button causing the Open File dialog to appear.  Then I right clicked on a file and selected "Rename".  I gave it a new name and it worked without any errors.

Perhaps you could give us more details on your system setup and what it is your are doing...
0
 
LVL 7

Expert Comment

by:Mohamed Zedan
ID: 17805108
sometimes if you have 3rd party software that provides info about certain file types then when you select that file type the software opens the file to provide the info like a preview or a thumbnail it opens the file and may cause that error ...
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question