|
-
Dec 31st, 1999, 10:36 PM
#1
Thread Starter
Junior Member
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
-
Jan 1st, 2000, 01:48 AM
#2
Junior Member
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
-
Jan 1st, 2000, 07:29 PM
#3
Thread Starter
Junior Member
It worked! Thanks!
------------------
Doomstar
http://come.to/Doomstar
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|