473,396 Members | 1,861 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,396 software developers and data experts.

MIME Types in .Net (urgent)


Is there a good resource, or could somebody please guide me on MIME-type
interaction in .Net? What I want to do, is build an application that could
open files of a certain type (for argument sake say a file type of .xyz).
When the user double clicks on a file with that extension, windows will load
my application since the mime type of my application is related to .xyz
files.

That part is done, the catch here is, if I already have an instance of my
application running, I want the already open instance of my application to
handle the call made by the user double clicking on the ".xyz" file - rather
than pop-up another instance of my application which it seems to doing now.

Your help will be greatly appreciated.

Thanks In Advance

--
Awah Teh
DigicentriQ Technologies, LLC
aw***@digicentriq.com
www.digicentriq.com
877 675 4742
805 732 9421
Nov 20 '05 #1
3 2877
Hi Awah,

That's a misleading title you've got there. Yours is how to have only one
instance of my application running issue. Nothing to do with MIME.

However. :-)

Here's a link to an MSDN article to give you some ideas. It'll be split
onto two lines so join them up in Notepad or something.

http://msdn.microsoft.com/library/de.../dnwinforms/ht
ml/reaworapps1.asp

There was also the same question just a few days ago in the
dotnet.languages.vb group. Topic - How to: Maximize window from the Main
function?, dated 15th Sep 2003, where there is a class given which does the
job of transferring from a secondary instance of a program to the first. It
doesn't (yet) have any communication between them, though. You could, perhaps,
use the Registry to store the parameters and the Activate event to retrieve
them.

Regards,
Fergus
Nov 20 '05 #2
Hello,

"Fergus Cooney" <fi******@tesco.net> schrieb:
It'll be split onto two lines so join them up in Notepad or
something.

http://msdn.microsoft.com/library/de...eaworapps1.asp

If you install all updates available for OE, URLs won't be split any more.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #3
wow now THAT is advanced! i didn't think the OE dev team had it in them...

"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:uT**************@tk2msftngp13.phx.gbl...
Hello,

http://msdn.microsoft.com/library/de...us/dnwinforms/
html/reaworapps1.asp
If you install all updates available for OE, URLs won't be split any more.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Sugapablo | last post by:
Is there any PHP function that will allow me to determine the MIME type of a blob stored in MySQL? Specifically, if I'm storing an image as a blob in MySQL, is there any PHP function that can...
2
by: ktsirig | last post by:
Hi all! I have a question: I am constructing a form where the user can upload a file. I need however to verify that the file uploaded is a TEXT file. Is $_FILE what I need? I am asking this...
0
by: clevariant | last post by:
Hello, I'm tasked with creating a WSDL file that is compatible with .NET's code gen' tool, wsdl.exe. I'm getting an error in the code output saying "Missing soap:body input binding", which...
1
by: Michael Loughry | last post by:
I'm writing a web application that fetches documents from the server and sends them to the client. I do this using the Response.BinaryWrite method. However, is there any way to detect the MIME...
5
by: splodge | last post by:
This may seem like a stupid question but I want to check before I go ahead and build this... I am working on a portal, part of which allows users to upload files. Part of the array within...
4
by: Sandman | last post by:
Hi there, So here is the situation I'm in. My PHP script does something like this: 1. Update a DB (only once) 2. Send some post data to another PHP script (only once) 3. Output some stuff...
3
by: amit | last post by:
Hello group, I'm uploading some image files such as jpeg, png and gif. However, I must convert time to jpeg type. I have few questions: 1) Can I convert time in using gd library? 2)...
4
by: David Thielen | last post by:
We need this both for what we set in IIS and for the HttpContext.Reponse.ContentType property. We've tried a bunch of different things and none seem to work. thanks - dave ...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.