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

    open a TXT file with notepad

    if I have a TEXT file..I want to open it by Notepad after clicked a button in VB..
    how can I do so??
    which control should I use?
    Thank you


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: open a TXT file with notepad

    use the Shell function:

    shell "notepad.exe " & yourfilePath


    or use the ShellExecute API


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