I am an artist who likes to code. I code in vs2010 and with winapp.
I created a (text) file "myfile.myapp"
Now, I made this file to open with my application.
What is did so far: Right click on my file - Open with - Choose default Program - ('Open With' window appears) - Browse - (find my winapp.exe) and click on it.
Now my file is linked to open only with this application.
But the lough is when my application starts. It doesnt know how to receive the file i just put to open with it.
I have no idea how to make the code for it, and where to put this code.
My impression is to put the code in the
public Form1()
{
InitializeComponent();
}
But what kind of code? I am thinking to read from a stream. But again, how?
Thank you so much for your help and happy new year 2020.
What I have tried:
----------------------------------------------------