CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Open File in Notepad

    I have a *.txt file listed in a List Box. What is the simplest method to open it in Notepad. Let's say double click on that file in a list box will opens this file.
    Thank you.


  2. #2
    Join Date
    May 1999
    Posts
    27

    Re: Open File in Notepad

    Try this:

    Dim Z As Long
    Dim X

    X = "Test.txt"

    Z = Shell("c:\windows\notepad.exe " & X, vbNormalFocus)

    - Dj4


  3. #3
    Guest

    Re: Open File in Notepad

    Thanks a lot.



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

Featured