...ok..maybe I have your form names reversed
I tested it before I posted it and I tested it again.
it returned false and opened user32
I add a folder..dinas passwords and saved 01.dat
it returned true and opened form1
Re: Re: ...ok..maybe I have your form names reversed
Quote:
Originally posted by dimava
there is still something wrong, this is the code:
Code:
Public sfile
Private Sub Command1_Click()
'If FSO.FolderExists("c:\dimas password\") Then
Open "C:\dimas password\01.dat" For Output As #1
Write #1, txtfn.Text, txtln.Text, txtcp.Text
Close #1
' Else:
' MkDir "C:\dimas password\"
' Open "C:\dimas password\01.dat" For Output As #1
' Write #1, txtfn.Text, txtln.Text, txtcp.Text
' Close #1
End Sub
Private Sub Form_Activate()
'SetFormPosition Form1.hWnd, vbTopMost
Dim FSO As Object
sfile = "C:\dimas password\01.dat"
Set FSO = CreateObject("Scripting.FileSystemObject")
If FSO.fileexists(sfile) = True Then
user32.Visible = True
Form1.Visible = False
Else
user32.Visible = False
Form1.Visible = True
End If
Set fs = Nothing
End Sub
(I put the ' infront of the code that I wasn't using)
oh yea, the form the the textboxes is form 1