Click here to Skip to main content
15,888,212 members
Home / Discussions / C#
   

C#

 
GeneralRe: COM in c# Pin
Anthony Mushrow10-Dec-07 14:51
professionalAnthony Mushrow10-Dec-07 14:51 
GeneralRe: COM in c# Pin
Luc Pattyn10-Dec-07 15:42
sitebuilderLuc Pattyn10-Dec-07 15:42 
GeneralRe: COM in c# Pin
Dromar10-Dec-07 14:31
Dromar10-Dec-07 14:31 
GeneralRe: COM in c# Pin
Luc Pattyn10-Dec-07 14:42
sitebuilderLuc Pattyn10-Dec-07 14:42 
GeneralRe: COM in c# Pin
Dromar10-Dec-07 15:42
Dromar10-Dec-07 15:42 
GeneralRe: COM in c# Pin
Luc Pattyn10-Dec-07 15:47
sitebuilderLuc Pattyn10-Dec-07 15:47 
QuestionHow to open-with a file using my application ? Pin
ZHM10-Dec-07 11:20
ZHM10-Dec-07 11:20 
GeneralRe: How to open-with a file using my application ? Pin
Luc Pattyn10-Dec-07 11:59
sitebuilderLuc Pattyn10-Dec-07 11:59 
Hi,

1.
to associate a file extension with an app you can:
- use Windows Explorer, menu Tools/Folder Options/File Types
- modify the registry with regedit or write some code (search CodeProject for details)
- or easiest: double-click, and let the Explorer dialogs guide you (make sure to check "Always...")

2.
for Open With, I expect the same possibilities but don't have the experience.

3.
if your file extension is associated to your app, then double-clicking the file will launch
the app and pass the full file path as command line arguments; see the arguments of your static
main() method and/or Environment.GetCommandLineArgs().

4.
Once you have all this in place you will probably want the double-click to reuse your app
if it is already open; if so search CP for "singleton application".

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


Sorry for any delays in replying, I currently don't always get e-mail notifications.


GeneralRe: How to open-with a file using my application ? Pin
Ian Uy10-Dec-07 20:05
Ian Uy10-Dec-07 20:05 
GeneralCreating a Sound(say, a Beep) Pin
polishprogrammer10-Dec-07 11:14
polishprogrammer10-Dec-07 11:14 
GeneralRe: Creating a Sound(say, a Beep) Pin
Ravi Bhavnani10-Dec-07 11:18
professionalRavi Bhavnani10-Dec-07 11:18 
GeneralRe: Creating a Sound(say, a Beep) Pin
PIEBALDconsult10-Dec-07 12:20
mvePIEBALDconsult10-Dec-07 12:20 
GeneralRe: Creating a Sound(say, a Beep) Pin
JoeRip10-Dec-07 14:22
JoeRip10-Dec-07 14:22 
GeneralRe: Creating a Sound(say, a Beep) Pin
polishprogrammer11-Dec-07 9:18
polishprogrammer11-Dec-07 9:18 
QuestionCasting from a Type object Pin
Leonardo Pelisoli10-Dec-07 10:55
Leonardo Pelisoli10-Dec-07 10:55 
GeneralRe: Casting from a Type object Pin
m@u10-Dec-07 11:54
m@u10-Dec-07 11:54 
GeneralRe: Casting from a Type object [modified] Pin
PIEBALDconsult10-Dec-07 12:25
mvePIEBALDconsult10-Dec-07 12:25 
GeneralRe: Casting from a Type object Pin
PIEBALDconsult10-Dec-07 14:20
mvePIEBALDconsult10-Dec-07 14:20 
GeneralRe: Casting from a Type object Pin
Leonardo Pelisoli11-Dec-07 12:14
Leonardo Pelisoli11-Dec-07 12:14 
GeneralC# Properties - Stack overflow. Pin
gunner_uk200010-Dec-07 10:34
gunner_uk200010-Dec-07 10:34 
GeneralRe: C# Properties - Stack overflow. Pin
Luc Pattyn10-Dec-07 10:43
sitebuilderLuc Pattyn10-Dec-07 10:43 
GeneralRe: C# Properties - Stack overflow. Pin
martin_hughes10-Dec-07 10:45
martin_hughes10-Dec-07 10:45 
GeneralRe: C# Properties - Stack overflow. Pin
hofmadresu10-Dec-07 17:17
hofmadresu10-Dec-07 17:17 
GeneralMouse_Click on User Control class Pin
Fragment10-Dec-07 9:42
Fragment10-Dec-07 9:42 
Generalreal time timer Pin
iman_kh10-Dec-07 8:53
iman_kh10-Dec-07 8:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.