If you really want to handle it this way you should look at starting a
process using something like:
System.Diagnostics.Process.Start("notepad.exe", @"C:\temp\TheFile.txt");
The first parameter is the name of the application you want to launch
while the second is the parameters you want to send to it. In this case
notepad accepts the name of a file to open. Anyway it should accomplish
what you asked for.
Have A Better One!
John M Deal, MCP
Necessity Software
Ken Adams wrote:
Basically I want to know how you could open a txt file in notepad through c#
code. I don't want to read in the data or anything like that I just want to
open the file just as it would have been if you double clicked it. Doesn't
necessarily have to be notepad I might add. Any suggestions? Thanks a bunch.
Ken