Click here to Skip to main content
15,884,472 members
Home / Discussions / C#
   

C#

 
GeneralRe: insert code not working Pin
musefan28-Jul-09 4:45
musefan28-Jul-09 4:45 
GeneralRe: insert code not working Pin
Vivek Vijayan28-Jul-09 4:55
Vivek Vijayan28-Jul-09 4:55 
GeneralRe: insert code not working Pin
musefan28-Jul-09 5:22
musefan28-Jul-09 5:22 
AnswerRe: insert code not working Pin
musefan28-Jul-09 4:21
musefan28-Jul-09 4:21 
GeneralRe: insert code not working Pin
Vivek Vijayan28-Jul-09 4:28
Vivek Vijayan28-Jul-09 4:28 
GeneralRe: insert code not working Pin
musefan28-Jul-09 4:40
musefan28-Jul-09 4:40 
Question[Message Deleted] Pin
hkjghkj128-Jul-09 3:56
hkjghkj128-Jul-09 3:56 
AnswerRe: Opening a file Pin
Ian Shlasko28-Jul-09 4:01
Ian Shlasko28-Jul-09 4:01 
To get the path of your executable:

System.Reflection.Assembly.GetEntryAssembly().Location

Then just get the directory with System.IO.Path.GetDirectoryName(), and use System.IO.Path.Combine() to tack on the PDF filename.

(Better to use System.IO.Path than string parsing, to make sure it'll work regardless of the location... forward slashes / backslashes, etc)

Proud to have finally moved to the A-Ark. Which one are you in?
Developer, Author (Guardians of Xen)

AnswerRe: Opening a file Pin
Tamer Oz28-Jul-09 4:08
Tamer Oz28-Jul-09 4:08 
AnswerRe: Opening a file Pin
Baeltazor30-Jul-09 19:13
Baeltazor30-Jul-09 19:13 
Questionlinces application Pin
nikhil123428-Jul-09 3:02
nikhil123428-Jul-09 3:02 
AnswerRe: linces application Pin
Ian Shlasko28-Jul-09 3:45
Ian Shlasko28-Jul-09 3:45 
Questionhow can i code a simple calculator? Pin
blackgemini28-Jul-09 2:53
blackgemini28-Jul-09 2:53 
AnswerRe: how can i code a simple calculator? Pin
Mike Ellison28-Jul-09 3:03
Mike Ellison28-Jul-09 3:03 
AnswerRe: how can i code a simple calculator? Pin
Tamer Oz28-Jul-09 3:39
Tamer Oz28-Jul-09 3:39 
AnswerRe: how can i code a simple calculator? Pin
PIEBALDconsult28-Jul-09 5:46
mvePIEBALDconsult28-Jul-09 5:46 
QuestionHow to inject code into .net assemblies ? Pin
hdv21228-Jul-09 2:42
hdv21228-Jul-09 2:42 
AnswerRe: How to inject code into .net assemblies ? Pin
kb-boxer28-Jul-09 3:02
kb-boxer28-Jul-09 3:02 
GeneralRe: How to inject code into .net assemblies ? Pin
hdv21228-Jul-09 3:48
hdv21228-Jul-09 3:48 
GeneralRe: How to inject code into .net assemblies ? Pin
kb-boxer3-Aug-09 8:02
kb-boxer3-Aug-09 8:02 
QuestionWhy I cant close a form normally?????? Pin
Jody Scheckter28-Jul-09 1:08
Jody Scheckter28-Jul-09 1:08 
AnswerRe: Why I cant close a form normally?????? Pin
Vimalsoft(Pty) Ltd28-Jul-09 1:34
professionalVimalsoft(Pty) Ltd28-Jul-09 1:34 
AnswerRe: Why I cant close a form normally?????? Pin
Henry Minute28-Jul-09 1:53
Henry Minute28-Jul-09 1:53 
GeneralRe: Why I cant close a form normally?????? Pin
Jody Scheckter3-Aug-09 20:54
Jody Scheckter3-Aug-09 20:54 
GeneralRe: Why I cant close a form normally?????? Pin
Henry Minute3-Aug-09 22:19
Henry Minute3-Aug-09 22:19 

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.