473,386 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Automatically opening files

i've written a "notepad - like" application in vb.net that saves text to
files with my own file extension. i want the program to open and display the
contents of the file once the file is double clicked in windows explorer. how
do i pull this off. do i have to edit windows registry, if i do, what do i
have to add?. thanks
Jul 21 '05 #1
2 1212
in explorer
Tools....Folder options....File Types....

"waisty vb.net rookie" <waisty vb.net ro****@discussions.microsoft.com>
wrote in message news:E4**********************************@microsof t.com...
i've written a "notepad - like" application in vb.net that saves text to
files with my own file extension. i want the program to open and display
the
contents of the file once the file is double clicked in windows explorer.
how
do i pull this off. do i have to edit windows registry, if i do, what do
i
have to add?. thanks

Jul 21 '05 #2
Thank you very much for taking your time to read my question Dino, but the
problem is, i want this to be done automatically.
i don't want to have to do it manually. The main reason i'm trying to learn
this, is so that i can apply it to another program i'm writing, which i
intemd to distribute. I won't always be there when my program is being
installed. What i want to know is, what do i add to my registry. Another
thing is that it's one thing for the correct program to run, and its another
thing for my program to know that it has been opened by doubleclicking the
file with the appropriate file extension, so that it automatically loads the
text in the opened file. Please reply Thanks.
ps: i hope i'm not asking too much, but could you please include just a very
very small example for me. I'd really appreciate it. Thanks a lot

"Dino Chiesa [Microsoft]" wrote:
in explorer
Tools....Folder options....File Types....

"waisty vb.net rookie" <waisty vb.net ro****@discussions.microsoft.com>
wrote in message news:E4**********************************@microsof t.com...
i've written a "notepad - like" application in vb.net that saves text to
files with my own file extension. i want the program to open and display
the
contents of the file once the file is double clicked in windows explorer.
how
do i pull this off. do i have to edit windows registry, if i do, what do
i
have to add?. thanks


Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: PM | last post by:
Has anyone found a way to open a file exclusively where it will fail if the file is already open, i have tried the following _FileStream = new FileStream(@"C:\Data.txt", FileMode.Open,...
1
by: Alfons | last post by:
Hello, I have build a program that can do file transferring between a Windows XP computer and a DOS computer via a serial port. The Windows program I have build in C++ with Visual Studio 6.0....
4
by: Nathan Sokalski | last post by:
I am writing code for ASP.NET, and when switching between design and HTML view in .aspx files many of the lines that are longer than the screen width automatically wrap to the next line. I do not...
2
by: waisty vb.net rookie | last post by:
i've written a "notepad - like" application in vb.net that saves text to files with my own file extension. i want the program to open and display the contents of the file once the file is double...
3
by: TheSteph | last post by:
Using : VS 2005, .NET 2.0, Windows Form, Win 2k I have a strange problem in VS : When I open some forms all the files (resx and cs) of this form are immediately marked as modified (an *...
1
by: bdog4 | last post by:
I'm developing an application that will automatically batch print files in a particular directory at certain intervals. How can I do this automatically without opening the documents and just...
1
by: sunil | last post by:
Hi all, I have a web application in which I have to open a "chm" file that exists on the local file system. I am able to open other files such as PDF, DOC files by writing the Response's output...
34
by: Alexnb | last post by:
Gerhard Häring wrote: No, it didn't work, but it gave me some interesting feedback when I ran it in the shell. Heres what it told me: Traceback (most recent call last): File...
1
navanova
by: navanova | last post by:
Greetings, I have a problem of opening ms word and excel files on my computer. The files are there for a long time. I use to open and modify them. Suddenly, when i try to open the word files, a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.