Click here to Skip to main content
15,902,276 members
Home / Discussions / C#
   

C#

 
AnswerRe: Reflection v Compilation Pin
Uwe Keim2-Jan-07 20:44
sitebuilderUwe Keim2-Jan-07 20:44 
GeneralRe: Reflection v Compilation Pin
mikestringfellow3-Jan-07 15:36
mikestringfellow3-Jan-07 15:36 
QuestionOpening notepad from own program Pin
dsl/fahk2-Jan-07 14:55
dsl/fahk2-Jan-07 14:55 
AnswerRe: Opening notepad from own program Pin
Luc Pattyn2-Jan-07 15:48
sitebuilderLuc Pattyn2-Jan-07 15:48 
QuestionRe: Opening notepad from own program Pin
dsl/fahk3-Jan-07 10:29
dsl/fahk3-Jan-07 10:29 
AnswerRe: Opening notepad from own program Pin
Luc Pattyn3-Jan-07 11:13
sitebuilderLuc Pattyn3-Jan-07 11:13 
GeneralRe: Opening notepad from own program Pin
dsl/fahk3-Jan-07 13:26
dsl/fahk3-Jan-07 13:26 
GeneralRe: Opening notepad from own program Pin
Luc Pattyn3-Jan-07 16:41
sitebuilderLuc Pattyn3-Jan-07 16:41 
OK, I suggest you make your program show the value and some content of
webBrowsing.DocumentText right before you create the new Process(),
something like:

string fileSpec=webBrowsing.DocumentText;
log("fileSpec="+fileSpec);
try {
	using (StreamReader sr=File.OpenText(fileSpec)) { // file closes automatically !
		// try to read and show 3 lines of the text
		for (int i=0; i<3; i++) {
			string s=sr.ReadLine();
			log(s);
		}
	}
} catch (Exception exc) {
	log(exc.Message);
	throw; // rethrows the exception towards debugger
}
Process openSource=...


in the above replace log() by whatever function can show you a string;
this could be Console.WriteLine()

this will tell us:
- whether the file spec is a valid windows file spec
- whether the file exists
- whether it is really readable

Good luck !

Smile | :)

Luc Pattyn

QuestionHow to tell if running under VS service host? Pin
JoeRip2-Jan-07 13:49
JoeRip2-Jan-07 13:49 
AnswerRe: How to tell if running under VS service host? Pin
Ennis Ray Lynch, Jr.2-Jan-07 14:09
Ennis Ray Lynch, Jr.2-Jan-07 14:09 
GeneralRe: How to tell if running under VS service host? Pin
Luc Pattyn2-Jan-07 14:37
sitebuilderLuc Pattyn2-Jan-07 14:37 
GeneralRe: How to tell if running under VS service host? Pin
JoeRip3-Jan-07 2:20
JoeRip3-Jan-07 2:20 
GeneralRe: How to tell if running under VS service host? Pin
JoeRip3-Jan-07 2:18
JoeRip3-Jan-07 2:18 
QuestionMulti tab interface question? Pin
TrooperIronMan2-Jan-07 13:31
TrooperIronMan2-Jan-07 13:31 
AnswerRe: Multi tab interface question? Pin
Nader Elshehabi2-Jan-07 13:41
Nader Elshehabi2-Jan-07 13:41 
GeneralRe: Multi tab interface question? Pin
TrooperIronMan3-Jan-07 1:38
TrooperIronMan3-Jan-07 1:38 
GeneralRe: Multi tab interface question? Pin
TrooperIronMan3-Jan-07 3:28
TrooperIronMan3-Jan-07 3:28 
GeneralRe: Multi tab interface question? Pin
Nader Elshehabi3-Jan-07 4:14
Nader Elshehabi3-Jan-07 4:14 
GeneralRe: Multi tab interface question? Pin
TrooperIronMan3-Jan-07 6:41
TrooperIronMan3-Jan-07 6:41 
GeneralRe: Multi tab interface question? Pin
Nader Elshehabi3-Jan-07 13:06
Nader Elshehabi3-Jan-07 13:06 
QuestionControl Panel applets Pin
dsovino2-Jan-07 11:54
dsovino2-Jan-07 11:54 
AnswerRe: Control Panel applets Pin
Nader Elshehabi2-Jan-07 12:32
Nader Elshehabi2-Jan-07 12:32 
GeneralRe: Control Panel applets Pin
dsovino2-Jan-07 12:39
dsovino2-Jan-07 12:39 
Questionwhant to compile pascal document for c# Pin
conemajstor2-Jan-07 11:33
conemajstor2-Jan-07 11:33 
AnswerRe: whant to compile pascal document for c# Pin
Christian Graus2-Jan-07 16:00
protectorChristian Graus2-Jan-07 16:00 

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.