PDA

Click to See Complete Forum and Search --> : Opening registered filetypes


Doomstar
Dec 31st, 1999, 09:36 PM
I'm currently working on a program that can read .txt and .rtf files. If you open a file from the open dialog in the program, it shows how cool VB can be...
Recently I found out how to register file types. So I registered .txt and .rtf to my program with the command "**prog. path + exe** %1". But then I tried to open a file and nothing happened. My program showed up with nothing in the RichTextBox...



------------------
Doomstar
http://come.to/Doomstar

VB-LEANER
Jan 1st, 2000, 12:48 AM
you need to add this command to the on load sub of your form

If Command$ = "" Then
'if no file are loaded
Else
'load up - file
End If

Doomstar
Jan 1st, 2000, 06:29 PM
It worked! Thanks!



------------------
Doomstar
http://come.to/Doomstar