Visual Programing
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Visual Programing

You are not connected. Please login or register

[TUT] How to make a Save Button to your Notepad

Go down  Message [Page 1 of 1]

k0j0e

k0j0e
Admin
Admin

1. make a Textbox.
2. make a commonDialog and name it CD.
3. make a button. The caption is Save.
4. Double click Save then type that :

Code:
Private Sub cmd1_Click()
On Error GoTo errhandler
With CD
.DialogTitle = "Where To Save?"
.Filter = "Text Files (*.txt)|*.txt"
.DefaultExt = "*.txt"
.CancelError = True
.ShowSave
End With

Open CD.FileName For Output As #1

Print #1, Text1.Text

Close #1


Exit Sub

errhandler:
Exit Sub

End Sub

Finish...

SPECIAL THANKS TO Arcady FOR THE TUTORIAL

-k0j0e

https://vbforum.iftopic.com

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum