Click here to Skip to main content
15,895,709 members
Home / Discussions / C#
   

C#

 
QuestionHow to create chm-files in the best way. Pin
Frygreen5-Apr-09 7:51
Frygreen5-Apr-09 7:51 
AnswerRe: How to create chm-files in the best way. Pin
Eslam Afifi5-Apr-09 8:07
Eslam Afifi5-Apr-09 8:07 
AnswerRe: How to create chm-files in the best way. Pin
Dave Doknjas5-Apr-09 14:04
Dave Doknjas5-Apr-09 14:04 
QuestionInvalid IP Pin
bar30005-Apr-09 6:55
bar30005-Apr-09 6:55 
AnswerRe: Invalid IP Pin
Luc Pattyn5-Apr-09 7:10
sitebuilderLuc Pattyn5-Apr-09 7:10 
AnswerRe: Invalid IP Pin
0x3c05-Apr-09 7:12
0x3c05-Apr-09 7:12 
AnswerRe: Invalid IP Pin
bar30005-Apr-09 7:33
bar30005-Apr-09 7:33 
QuestionWebClient/ Access Denied upon saving file...? Pin
jas0n235-Apr-09 6:06
jas0n235-Apr-09 6:06 
Hi all! Big Grin | :-D

I was just wondering how I could elevate privelages programmatically using C# as I am trying to download a file from my site and automatically save it to My Documents on my computer but I keep getting an exception and it says access to MyDocuments denied. Does anybody know how to get around this? It happens on both my XP and Vista computers. I don't want to turn off UAC or the equivelant in XP either? I'd appreciate any advice I can get. Thanks in advance.

Jay.

P.S. Incase anybody wants to know how to download files using WebClient, here's the code:

WebClient DownloadClient = new WebClient();
DownloadClient.DownloadFile(StartingPointTextBox.Text, SaveSessionTextBox.Text);


j.t.

AnswerRe: WebClient/ Access Denied upon saving file...? Pin
Luc Pattyn5-Apr-09 6:20
sitebuilderLuc Pattyn5-Apr-09 6:20 
GeneralRe: WebClient/ Access Denied upon saving file...? Pin
jas0n235-Apr-09 6:34
jas0n235-Apr-09 6:34 
GeneralRe: WebClient/ Access Denied upon saving file...? Pin
Luc Pattyn5-Apr-09 6:49
sitebuilderLuc Pattyn5-Apr-09 6:49 
GeneralRe: WebClient/ Access Denied upon saving file...? Pin
jas0n235-Apr-09 6:50
jas0n235-Apr-09 6:50 
QuestionHashtable key type Pin
Bruce Coward5-Apr-09 3:31
Bruce Coward5-Apr-09 3:31 
AnswerRe: Hashtable key type Pin
Luc Pattyn5-Apr-09 4:00
sitebuilderLuc Pattyn5-Apr-09 4:00 
AnswerRe: Hashtable key type Pin
PIEBALDconsult5-Apr-09 4:03
mvePIEBALDconsult5-Apr-09 4:03 
GeneralRe: Hashtable key type Pin
Bruce Coward5-Apr-09 4:16
Bruce Coward5-Apr-09 4:16 
GeneralRe: Hashtable key type Pin
N a v a n e e t h5-Apr-09 4:38
N a v a n e e t h5-Apr-09 4:38 
Questionprocess IO Pin
shefa' isied5-Apr-09 2:48
shefa' isied5-Apr-09 2:48 
AnswerRe: process IO Pin
Luc Pattyn5-Apr-09 2:52
sitebuilderLuc Pattyn5-Apr-09 2:52 
GeneralRe: process IO Pin
Michael Bookatz5-Apr-09 6:04
Michael Bookatz5-Apr-09 6:04 
GeneralRe: process IO Pin
Natza Mitzi5-Apr-09 9:25
Natza Mitzi5-Apr-09 9:25 
QuestionDoesn't show any effect by registering a visual Studio 2008 C# Express edition's dll by using Windows command Prompt? Pin
svt gdwl5-Apr-09 2:44
svt gdwl5-Apr-09 2:44 
AnswerRe: Doesn't show any effect by registering a visual Studio 2008 C# Express edition's dll by using Windows command Prompt? Pin
Luc Pattyn5-Apr-09 2:50
sitebuilderLuc Pattyn5-Apr-09 2:50 
GeneralRe: Doesn't show any effect by registering a visual Studio 2008 C# Express edition's dll by using Windows command Prompt? Pin
svt gdwl5-Apr-09 2:53
svt gdwl5-Apr-09 2:53 
QuestionPreventing another application from calling code of my application. Pin
Sandeep Kalra5-Apr-09 1:53
Sandeep Kalra5-Apr-09 1:53 

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.