Re: how to open an application through an assigned filetype?
From: Morten Wennevik (MortenWennevik_at_hotmail.com)
Date: 05/04/04
- Next message: Christoph Nahr: "Re: Setting a Pixel"
- Previous message: Development: "Re: how to open an application through an assigned filetype?"
- In reply to: Jesper.: "how to open an application through an assigned filetype?"
- Next in thread: Tom Porterfield: "Re: how to open an application through an assigned filetype?"
- Reply: Tom Porterfield: "Re: how to open an application through an assigned filetype?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 04 May 2004 09:37:42 +0200
Hi Jesper,
Not sure how to assign file type, but what happens when you click on a
"known" file is that the program is launched with the name of the file as
the first argument in the argument list.
public static void Main(string[] args)
{
if(args.Length > 0)
Application.Run(new Form1(args[0]));
else
Application.Run(new Form1());
}
Happy coding!
Morten Wennevik [C# MVP]
- Next message: Christoph Nahr: "Re: Setting a Pixel"
- Previous message: Development: "Re: how to open an application through an assigned filetype?"
- In reply to: Jesper.: "how to open an application through an assigned filetype?"
- Next in thread: Tom Porterfield: "Re: how to open an application through an assigned filetype?"
- Reply: Tom Porterfield: "Re: how to open an application through an assigned filetype?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|