Results 1 to 10 of 10

Thread: [Just One More ?]Open txt file Read Only

Threaded View

  1. #1

    Thread Starter
    Frenzied Member FishGuy's Avatar
    Join Date
    Mar 2005
    Location
    Bradford UK
    Posts
    1,708

    [Just One More ?]Open txt file Read Only

    I am using this code to open a text file. is there a way to make it open read only so the users cannot modify it.
    VB Code:
    1. Private Sub InfoMen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InfoMen.Click
    2.         Try
    3.             'Opens Readme file using ms notepad
    4.             Shell("notepad.exe " & "readme.txt")
    5.         Catch ereadme As SystemException
    6.             System.Windows.Forms.MessageBox.Show(ereadme.Message)
    7.         End Try
    8.     End Sub
    Last edited by FishGuy; Oct 3rd, 2005 at 08:35 AM.

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