Hi,
I have a project file that just consist of a prg file and then i build an exe from the app, but i would like to know if the user just has opened the exe file once and trying to open it again, how to advice that the application is already open, the begining of my prg file is as below, this is in vfp 9.0
_screen.caption=" Find a File... "
_screen.Height=525
_screen.Width=820
_screen.BackColor=(RGB(128,0,255))
_screen.MaxButton = .F.
SET SAFETY OFF
Local oForm As Form
oForm = Createobject('Form1')
oForm.Show(1)
Return
Define Class Form1 As Form
Height = 470
AutoCenter = .T.
Closable = .F.
MinButton = .F.
MaxButton = .F.
Caption = "Search Tool..., To Stop Or cancel Press Escape Key "
Width = 800
Add Object label1 As Label With ;
top = 30, Left = 10, Caption = 'Search File', AutoSize = .T.
Add Object txtFile As TextBox With ;
top = 28, Left = 100, Value = '', Width = 200
an so on
is there a piece of code that i can put at the top for checking that this is already running ?
Thanks
I have a project file that just consist of a prg file and then i build an exe from the app, but i would like to know if the user just has opened the exe file once and trying to open it again, how to advice that the application is already open, the begining of my prg file is as below, this is in vfp 9.0
_screen.caption=" Find a File... "
_screen.Height=525
_screen.Width=820
_screen.BackColor=(RGB(128,0,255))
_screen.MaxButton = .F.
SET SAFETY OFF
Local oForm As Form
oForm = Createobject('Form1')
oForm.Show(1)
Return
Define Class Form1 As Form
Height = 470
AutoCenter = .T.
Closable = .F.
MinButton = .F.
MaxButton = .F.
Caption = "Search Tool..., To Stop Or cancel Press Escape Key "
Width = 800
Add Object label1 As Label With ;
top = 30, Left = 10, Caption = 'Search File', AutoSize = .T.
Add Object txtFile As TextBox With ;
top = 28, Left = 100, Value = '', Width = 200
an so on
is there a piece of code that i can put at the top for checking that this is already running ?
Thanks