Click here to Skip to main content
15,900,457 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# and DLL's Pin
Ed Hopkins16-Aug-04 9:28
Ed Hopkins16-Aug-04 9:28 
GeneralRe: C# and DLL's Pin
MilesAhead16-Aug-04 10:00
MilesAhead16-Aug-04 10:00 
GeneralJava Classes Pin
eggie513-Aug-04 8:14
eggie513-Aug-04 8:14 
GeneralRe: Java Classes Pin
Nick Parker13-Aug-04 8:49
protectorNick Parker13-Aug-04 8:49 
GeneralRetrieving File Information Pin
matthias s.13-Aug-04 8:03
matthias s.13-Aug-04 8:03 
GeneralRe: Retrieving File Information Pin
Nick Parker13-Aug-04 9:04
protectorNick Parker13-Aug-04 9:04 
GeneralRe: Retrieving File Information Pin
matthias s.13-Aug-04 9:14
matthias s.13-Aug-04 9:14 
GeneralRe: Retrieving File Information Pin
Dave Kreskowiak13-Aug-04 9:54
mveDave Kreskowiak13-Aug-04 9:54 
Matthias Steinbart wrote:
3. How do I launch the file in it's associated application. I know I can start any application using Process.Start().

You do the same for the document file, but don't include the application's execute and putting your document path as a command line parameter. It's actually NOT the right way to do it... Setup your Process object as usuall, but set its UseShellExecute property to true. This will launch the document with the registered application and use the correct command line options, if any.
Process myNewProcess = new Process();
myNewProcess.StartInfo.FileName = "myWordDoc.doc";
myNewProcess.StartInfo.UseShellExecute = true;
myNewProcess.Start();



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralTransparencyKey producing black flicker Pin
3Dizard13-Aug-04 7:10
3Dizard13-Aug-04 7:10 
GeneralRe: TransparencyKey producing black flicker Pin
Nick Parker13-Aug-04 8:38
protectorNick Parker13-Aug-04 8:38 
GeneralRe: TransparencyKey producing black flicker Pin
J. Dunlap13-Aug-04 12:24
J. Dunlap13-Aug-04 12:24 
GeneralRe: TransparencyKey producing black flicker Pin
3Dizard14-Aug-04 0:52
3Dizard14-Aug-04 0:52 
GeneralTAPI in C# Pin
Zeeshan Gulzar13-Aug-04 6:45
Zeeshan Gulzar13-Aug-04 6:45 
GeneralRe: TAPI in C# Pin
Nick Parker13-Aug-04 7:43
protectorNick Parker13-Aug-04 7:43 
GeneralVisual Studio oddities Pin
OBRon13-Aug-04 6:10
OBRon13-Aug-04 6:10 
GeneralIntelliSense-like addin Pin
LorenzoDV13-Aug-04 6:06
LorenzoDV13-Aug-04 6:06 
GeneralRe: IntelliSense-like addin Pin
Nick Parker13-Aug-04 7:46
protectorNick Parker13-Aug-04 7:46 
GeneralAbout form Pin
jzb13-Aug-04 5:59
jzb13-Aug-04 5:59 
GeneralRe: About form Pin
Nick Parker13-Aug-04 8:39
protectorNick Parker13-Aug-04 8:39 
GeneralRe: About form Pin
jzb13-Aug-04 16:28
jzb13-Aug-04 16:28 
GeneralSerious Issue Pin
sreejith ss nair13-Aug-04 5:38
sreejith ss nair13-Aug-04 5:38 
GeneralRe: Serious Issue Pin
Dave Kreskowiak13-Aug-04 9:41
mveDave Kreskowiak13-Aug-04 9:41 
GeneralRe: Serious Issue Pin
sreejith ss nair13-Aug-04 17:50
sreejith ss nair13-Aug-04 17:50 
GeneralRe: Serious Issue Pin
Dave Kreskowiak13-Aug-04 18:42
mveDave Kreskowiak13-Aug-04 18:42 
GeneralRe: Serious Issue Pin
sreejith ss nair13-Aug-04 18:57
sreejith ss nair13-Aug-04 18:57 

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.