Solved

File is locked using the FileOpen Dialogue

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 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

16 Experts available now in Live!

Get 1:1 Help Now