473,394 Members | 1,640 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

File Association with my WinForms application

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
1 1839
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Justin F | last post by:
I have set up file association for my application (VB.Net). I'm having problems getting the filename that was double-clicked. On my machine at work, if the filename being passed in to the...
2
by: Mark | last post by:
I have a windows 2000 PC and it does not know what a hta file is. any ideas. Mark
4
by: Rob | last post by:
I have an Access application that allows users to open up certain files from within Access (.doc files with automation, .pdf's with a pdf viewing form). Other formats, we want to use Internet...
1
by: JerryP | last post by:
Hi Experts, from my program I offer the user to launch different files from a directory (normaly in this directory are .txt files) - but sometimes other files may be in there - so if my program...
1
by: Allen | last post by:
I have installed the Updater Application Block, and then I should Deploy the QuickStarts. " Install the QuickStarts After you install the Updater Application Block, you should install the...
6
by: Nak | last post by:
Hi there, I am implementing file association from within my application, association that occurs after installation. Anyway, I remember a while back seeing a key in the registry that was used...
4
by: Shil | last post by:
Hi, In VC++.Net 2005 visual studio, if I create a new winform drag and drop a button, then double click it to write click event code, then it auto generates the template code for the event in...
2
by: Robert W. | last post by:
With a WinForms app I know how to configure the registry to understand a specific file association so that it is associated with a given application. But how does one do this with a web browser?...
1
by: =?Utf-8?B?S2VuIExlbWlldXg=?= | last post by:
I've deployed, successfully, several Clickonce applications. The problem I have is the negative reaction to my software when a user attempts to open a file and no association exists between the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.