Click here to Skip to main content
15,914,452 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Why I cant close a form normally?????? Pin
Pete O'Hanlon28-Jul-09 1:58
mvePete O'Hanlon28-Jul-09 1:58 
AnswerRe: Why I cant close a form normally?????? PinPopular
Luc Pattyn28-Jul-09 2:18
sitebuilderLuc Pattyn28-Jul-09 2:18 
Questionbind unbound field Pin
behzadcp28-Jul-09 1:01
professionalbehzadcp28-Jul-09 1:01 
AnswerRe: bind unbound field Pin
behzadcp29-Jul-09 2:15
professionalbehzadcp29-Jul-09 2:15 
QuestionCount the bold letters in ms word document Pin
Madhu_San28-Jul-09 0:08
Madhu_San28-Jul-09 0:08 
AnswerRe: Count the bold letters in ms word document Pin
Tamer Oz28-Jul-09 0:54
Tamer Oz28-Jul-09 0:54 

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.