Click here to Skip to main content
15,889,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone.
I have created some vb net programs in visual studio. Doesent matter what programms they are. They include some labels and text boxes. The question is how can i save a file on a specific folder as a program's file with current textbox values and then when i click on that file open my programm with these values. As so many programs do like office where you can save a word, excell, power point file etc and when you re open it it loads the last project.
I cant find nothing similir on the net

What I have tried:

I tried Google search to get some ideas but i didnt find anything about that ...
Posted
Updated 15-Apr-18 11:58am
v2

1 solution

There is two parts to this question;
Firstly
You need to create a File Association - this tells the operating system what application to open the file with
Secondly
You need to pass the file name & path to the application

Nice little demo program on creating a file association is below - quite old but nonetheless suitable
File Association in VB.NET[^]

Once you have done this you would retrieve the name and path of the file using the Command Line Arguments

Kind Regards
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900