pastmaster

Hi all,

Thanks to this great forum, I managed to create my own Edit pad with some additional functions that aren't there in the notepad. Anyway, I want to create my own extension "*.epd" and when user opens the *.epd file, it must be opened with my Edit pad application.

I need a Setup file generating software, such that when I run the setup of my application, it should do this.

Any suggestions for such a setup generator Or, is it possible to do so in VB itself



Re: Visual Basic Express Edition File Extension Association

Mayur Tendulkar

Hi,

You don't need any special software to do this. Hats off to Visual Studio. You can use inbuilt Setup Projects template in Visual Studio to build a Setup package which will associate your extention with your application.

Just create a new Setup project and under file type associations use *.epd to associate with your application.

Mayur Tendulkar

Microsoft Student Partner






Re: Visual Basic Express Edition File Extension Association

pastmaster

Please give an in depth explanation. I couldn't find File Type Associations. I am completely lost here Sad



Re: Visual Basic Express Edition File Extension Association

Mayur Tendulkar

Hi,

Right Click your Solution in Solution Explorer, Click on Add New Project. Select Setup Project. Then give a name to it and add it.

Once you added the project. go to solution explorer and there, you will find small icons which will be for, File System Editor, Registry Editor, File Types Editor, User Interface Editor, Custom Action Editor and all.

This File Type editor will help you to acheive your goal. Hence, at this screen select File Type editor, right click in main pane and add new type. Modify its properties and it will work for you.

Mayur Tendulkar

Microsoft Student Partner

Asst. Manager: Pune User Group For Students






Re: Visual Basic Express Edition File Extension Association

pastmaster

Yes, but the problem is,

After saving my file(say, past.epd), When I open the file, the contents aren't there.. how to rectify this error





Re: Visual Basic Express Edition File Extension Association

pastmaster

Actually what i was trying to say was,

I run my application, save it with name past.epd in desktop and close my application.

Now, I double click the past.epd file in my desktop and to my disappointment, I don't find any content.

But, if I do File -> Open I can see the content of the saved file.





Re: Visual Basic Express Edition File Extension Association

pastmaster

Please help, anyone Sad




Re: Visual Basic Express Edition File Extension Association

CharlesF

Please be more precise in the description of your problem. Was your application working before being packaged Isn't it a problem of file writting (like you forgot to flush write buffer at the end of file writting) Do you correctly use the "Args" parameters





Re: Visual Basic Express Edition File Extension Association

simnor

I've always had this problem as well and never been able to rectify it either, I think what you are trying to say is this, I'll take the example of a text file:

I have a text file called text.txt which is saved on the desktop
I double click on that file (text.txt) and i want it to open in the text box: textbox1 on form 1

How do I (we) do that






Re: Visual Basic Express Edition File Extension Association

TJayE

I've had this problem too. I actually prefer to write my own registry classes for this. The problem is (most likely) is because you're not using the Command() you double click your own file it launches the program specified in the register then sends the file to the the program. To see what I mean add this in your Form OnLoad

MsgBox(Command) you should see the path to the file that launched your program. Command is a string that you can use to open the file. I'd suggest making an open function and pass the file name to the function. I.E.

Private Sub OpenMyFile(ByVal str_FilePath As String)
'Open File Code Here
End Sub


Hopes this helps