Click here to Skip to main content
15,891,833 members
Home / Discussions / C#
   

C#

 
GeneralRe: MdiWindowListItem in C# express beta Pin
benjymous30-Oct-04 23:08
benjymous30-Oct-04 23:08 
GeneralRe: MdiWindowListItem in C# express beta Pin
Heath Stewart31-Oct-04 9:19
protectorHeath Stewart31-Oct-04 9:19 
GeneralStrange compile error Pin
steve_rm29-Oct-04 20:14
steve_rm29-Oct-04 20:14 
GeneralRe: Strange compile error Pin
Heath Stewart30-Oct-04 3:47
protectorHeath Stewart30-Oct-04 3:47 
Generalprocess.start problem Pin
Karl 200029-Oct-04 19:50
Karl 200029-Oct-04 19:50 
GeneralRe: process.start problem Pin
Heath Stewart30-Oct-04 3:45
protectorHeath Stewart30-Oct-04 3:45 
GeneralRe: process.start problem Pin
Karl 200030-Oct-04 9:23
Karl 200030-Oct-04 9:23 
GeneralRe: process.start problem Pin
Heath Stewart30-Oct-04 15:40
protectorHeath Stewart30-Oct-04 15:40 
Some applications - like Office and Adobe Acrobat/Reader - register documents (file monikers) into the ROT (running object table) associated with the application. When a new document is opened, the file persistence handler (typically; this is actually implementation-specific, but is a fundamental technology in COM) checks for running objects and if it is found, activates it. Since the application is running, it doesn't need to be opened again. The new document is opened and registered in the ROT. If this was an existing document, it activates it.

It still shouldn't behave differently, however.

Perhaps try being more explicit, like so:
ProcessStartInfo psi = new ProcessStartInfo("file.pdf");
psi.UseShellExecute = true;
psi.Verb = "open";
Process.Start(psi);
Depending on the operating system this could yield different results. On Win96 the verb "open" is always assumed where with NT its whatever the default is (which could be different than "open"). You can find this out by looking at the File Types tab in the Folder Options control panel.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: process.start problem Pin
Karl 20001-Nov-04 2:50
Karl 20001-Nov-04 2:50 
Generalabout dynamic image in the richtextbox Pin
oldhawkiu29-Oct-04 19:38
oldhawkiu29-Oct-04 19:38 
GeneralRe: about dynamic image in the richtextbox Pin
oldhawkiu31-Oct-04 14:15
oldhawkiu31-Oct-04 14:15 
GeneralHelp On A Oracle Insert Statement Pin
macsgirl29-Oct-04 17:03
macsgirl29-Oct-04 17:03 
GeneralRe: Help On A Oracle Insert Statement Pin
Dave Kreskowiak29-Oct-04 18:53
mveDave Kreskowiak29-Oct-04 18:53 
GeneralRe: Help On A Oracle Insert Statement Pin
macsgirl29-Oct-04 18:56
macsgirl29-Oct-04 18:56 
GeneralRe: Help On A Oracle Insert Statement Pin
Heath Stewart30-Oct-04 3:39
protectorHeath Stewart30-Oct-04 3:39 
GeneralRe: Help On A Oracle Insert Statement Pin
Alex Korchemniy29-Oct-04 20:50
Alex Korchemniy29-Oct-04 20:50 
GeneralRe: Help On A Oracle Insert Statement Pin
macsgirl29-Oct-04 21:15
macsgirl29-Oct-04 21:15 
Generalplay video in windows form Pin
machocr29-Oct-04 10:42
machocr29-Oct-04 10:42 
GeneralRe: play video in windows form Pin
Heath Stewart30-Oct-04 3:36
protectorHeath Stewart30-Oct-04 3:36 
Generalsockets Pin
great_joe_8529-Oct-04 10:27
great_joe_8529-Oct-04 10:27 
GeneralRe: sockets Pin
Alex Korchemniy29-Oct-04 20:54
Alex Korchemniy29-Oct-04 20:54 
QuestionSetting return code in console app? Pin
LongRange.Shooter29-Oct-04 10:15
LongRange.Shooter29-Oct-04 10:15 
AnswerRe: Setting return code in console app? Pin
Heath Stewart30-Oct-04 3:30
protectorHeath Stewart30-Oct-04 3:30 
GeneralRe: Setting return code in console app? Pin
LongRange.Shooter1-Nov-04 2:23
LongRange.Shooter1-Nov-04 2:23 
Generalmemcopy in C# Pin
youssef29-Oct-04 10:07
youssef29-Oct-04 10:07 

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.