Results 1 to 2 of 2

Thread: [2005] Saving/Printing Files

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    [2005] Saving/Printing Files

    How do i make a program that acts in the same way as microsoft word?

    The only things i need to know for this program is Saving and Printing the string value in the file.

  2. #2
    Fanatic Member Lerroy_Jenkins's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    661

    Re: [2005] Saving/Printing Files

    Saving:

    vb Code:
    1. Private Sub butSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles butSave.Click
    2.         Dim Savefile1 As New SaveFileDialog
    3.         Savefile1.DefaultExt = ("*.rtf")
    4.         Savefile1.Filter = "RTF Files|*.rtf"
    5.         If (Savefile1.ShowDialog = System.Windows.Forms.DialogResult.OK) And (Savefile1.FileName.Length > 0) Then
    6.             RichTextBox1.SaveFile(Savefile1.FileName)
    7.         End If
    8.     End Sub
    Lerroy

    "η β π", or "Eta Beta Pi" (Eat A Better Pie)

    01001000
    01000101
    01001100
    01010000


    My Own Code - WordCounter

    Useful Forum Links -Reputation - What is it?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width