Solved

File is locked using the FileOpen Dialogue

Posted on 2006-10-25
2
236 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
2 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
Modal Popup Extender control 1 37
Optimize the query 5 43
VB.Net - String Manipulation Scenario 2 25
Get month and date in a format 4 31
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

839 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