By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,104 Members | 1,520 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,104 IT Pros & Developers. It's quick & easy.

File Association with my WinForms application

P: n/a
Hi Everyone,

I have a backup application I'm working on that saves backups with an
extension of .ABF.

I have figured out how to make the association change with PInvoke/shell32,
but would like some advice on how to handle the file passed as an arguement
to my WinForms application.

I was thinking about changing the application to a console application with
something like main( args()) as the entry point, testing to see if the args
passed were null and proceeding from there by either showing the main form
or showing the restore form.

Is there a better way of doing this somewhere using the application events
of my WinForms application?

Thanks in advance.

Chris
Aug 30 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Everyone,

It looks like I found a solution with a little bit of digging:

http://www.vbdotnetheaven.com/Upload...mFileType.aspx

or

http://www.planet-source-code.com/vb...4962&lngWId=10
Chris

"Chris" <co***********@nospam.yahoo.comwrote in message
news:%2***************@TK2MSFTNGP05.phx.gbl...
Hi Everyone,

I have a backup application I'm working on that saves backups with an
extension of .ABF.

I have figured out how to make the association change with
PInvoke/shell32, but would like some advice on how to handle the file
passed as an arguement to my WinForms application.

I was thinking about changing the application to a console application
with something like main( args()) as the entry point, testing to see if
the args passed were null and proceeding from there by either showing the
main form or showing the restore form.

Is there a better way of doing this somewhere using the application events
of my WinForms application?

Thanks in advance.

Chris

Aug 30 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.