Click here to Skip to main content
16,008,490 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralDeveloping applications for BlackBerry Pin
Mr Oizo23-Apr-08 4:50
Mr Oizo23-Apr-08 4:50 
GeneralRe: Developing applications for BlackBerry Pin
Thomas Stockwell23-Apr-08 8:24
professionalThomas Stockwell23-Apr-08 8:24 
QuestionError QueryInterface while trying to use VB6 DLL into VB.NET project Pin
mandrake_223-Apr-08 4:45
mandrake_223-Apr-08 4:45 
Questionsetting a variable for multiple threads Pin
Tom Deketelaere23-Apr-08 4:23
professionalTom Deketelaere23-Apr-08 4:23 
GeneralRe: setting a variable for multiple threads Pin
Luc Pattyn23-Apr-08 11:04
sitebuilderLuc Pattyn23-Apr-08 11:04 
GeneralRe: setting a variable for multiple threads Pin
Tom Deketelaere23-Apr-08 23:10
professionalTom Deketelaere23-Apr-08 23:10 
GeneralFile Open/Close Pin
ritz123423-Apr-08 3:06
ritz123423-Apr-08 3:06 
GeneralRe: File Open/Close Pin
Dave Kreskowiak23-Apr-08 3:38
mveDave Kreskowiak23-Apr-08 3:38 
The problem with that theory is you can't tell. Applications like Notepad only open the file long enough to read it into it's memory, then close the file. So, if the file really open?? Or does Notepad just have a copy of the contents of the file??

In either case, there is no function you can pass a filename to to find out if it's open. The only way to tell if the file is really open, and not just a copy like Notepad "opened" the file, would be to open every process in the system, enumerate its handles, then see if one of those handles is pointing the filename you want. There is no .NET way to do this. It would have to be done entirely in Win32 API function calls.

There is no way to tell if something loaded the file and closed it.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: File Open/Close Pin
ritz123423-Apr-08 4:32
ritz123423-Apr-08 4:32 
GeneralRe: File Open/Close Pin
Dave Kreskowiak23-Apr-08 9:59
mveDave Kreskowiak23-Apr-08 9:59 
GeneralProblem in bring a checkbox inside a datagrid in windows application.. Pin
Balagurunathan S23-Apr-08 1:14
Balagurunathan S23-Apr-08 1:14 
GeneralRe: Problem in bring a checkbox inside a datagrid in windows application.. Pin
darkelv23-Apr-08 1:17
darkelv23-Apr-08 1:17 
GeneralRe: Problem in bring a checkbox inside a datagrid in windows application.. Pin
Balagurunathan S23-Apr-08 1:27
Balagurunathan S23-Apr-08 1:27 
GeneralRe: Problem in bring a checkbox inside a datagrid in windows application.. Pin
darkelv23-Apr-08 1:38
darkelv23-Apr-08 1:38 
GeneralRe: Problem in bring a checkbox inside a datagrid in windows application.. Pin
Balagurunathan S23-Apr-08 1:44
Balagurunathan S23-Apr-08 1:44 
GeneralRe: Problem in bring a checkbox inside a datagrid in windows application.. Pin
darkelv23-Apr-08 1:56
darkelv23-Apr-08 1:56 
GeneralRe: Problem in bring a checkbox inside a datagrid in windows application.. Pin
Balagurunathan S23-Apr-08 2:06
Balagurunathan S23-Apr-08 2:06 
GeneralRe: Problem in bring a checkbox inside a datagrid in windows application.. Pin
darkelv23-Apr-08 2:15
darkelv23-Apr-08 2:15 
Questionstring Replace in vb.net Pin
RajeevKumarSharma23-Apr-08 0:54
RajeevKumarSharma23-Apr-08 0:54 
GeneralRe: string Replace in vb.net Pin
Christian Graus23-Apr-08 1:06
protectorChristian Graus23-Apr-08 1:06 
GeneralRe: string Replace in vb.net Pin
RajeevKumarSharma23-Apr-08 1:28
RajeevKumarSharma23-Apr-08 1:28 
GeneralRe: string Replace in vb.net Pin
Dave Kreskowiak23-Apr-08 3:34
mveDave Kreskowiak23-Apr-08 3:34 
GeneralRe: string Replace in vb.net Pin
Icharus23-Apr-08 19:28
Icharus23-Apr-08 19:28 
Questionreceive file names sent to your application Pin
Member 467598623-Apr-08 0:08
Member 467598623-Apr-08 0:08 
GeneralRe: receive file names sent to your application Pin
Christian Graus23-Apr-08 1:06
protectorChristian Graus23-Apr-08 1:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.