Solved

File is locked using the FileOpen Dialogue

Posted on 2006-10-25
2
233 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now