I am working on a small project and I have hit a birck wall.... All my google powers are not helping me.
I am an armature at visual basic and just can't see what I have done wrong!
So I just want to the script to know if a certain file is already in use. Here is what I have... It ALWAYS returns the "not open" msgbox
Public Class Form1
Private _fileOpen As Boolean
Private Property FileOpen(ByVal p1 As String) As Boolean
Set(ByVal value As Boolean)
_fileOpen = value
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If FileOpen("H:\Administration\Information Technology\Test.docx") = True Then
I have just attached it to a button with msgbox things to get it working... It will be doing something a bit more extravagant once I have the basics down.
If you need any more information please ask.
Thank you in advance. Sorry if I am being really dumb!