I am creating a notepad like program of my own in vb I want to know how to verify the condition that if a file that is present in the note pad is to be save or not and display a message to the user like the usual windows notepad.
If any can help please mail me
I have tried the following code of my own but does not work
this is the exit function. for my program
Private Sub xit_Click(Index As Integer)
If Text1.Text = "" Then
Unload Me
Else
MsgBox "The file is not saved do you want to save it", vbYesNo
If True Then
Call open_Click(0)
Else
Unload Me
End If
End If
End Sub
how can it be modified to work properly
If any can help please mail me
I have tried the following code of my own but does not work
this is the exit function. for my program
Private Sub xit_Click(Index As Integer)
If Text1.Text = "" Then
Unload Me
Else
MsgBox "The file is not saved do you want to save it", vbYesNo
If True Then
Call open_Click(0)
Else
Unload Me
End If
End If
End Sub
how can it be modified to work properly