To open a new file
C#
4
Posts
4
Posters
0
Views
1
Watching
-
Rupaa wrote:
How to open a new File on a Button click such as an Application file.
To do anything on a button click you will require event processing. If you want to open a file specified by the user, so you need only a file path in string format, you could use OpenFileDialog. If you want to open a file, so actually access it, which would mean you want its information. You can use some .Net's classes inside of the System.IO namespace. They are ending with 'reader'. So what type of file access do you need? If you want just only to execute a certain assembly executable, then I guess Process.Start(fileName) should be fine. ... I hope this helps! :-\