Click here to Skip to main content
15,908,901 members
Home / Discussions / C#
   

C#

 
QuestionwebBrowser and webRequest work in IDE but not from desktop [modified] Pin
BarnabyByrne27-Feb-10 13:34
BarnabyByrne27-Feb-10 13:34 
AnswerRe: webBrowser and webRequest work in IDE but not from desktop Pin
Luc Pattyn27-Feb-10 13:53
sitebuilderLuc Pattyn27-Feb-10 13:53 
GeneralRe: webBrowser and webRequest work in IDE but not from desktop [modified] Pin
BarnabyByrne27-Feb-10 14:21
BarnabyByrne27-Feb-10 14:21 
GeneralRe: webBrowser and webRequest work in IDE but not from desktop Pin
BarnabyByrne27-Feb-10 16:32
BarnabyByrne27-Feb-10 16:32 
QuestionDeturmining when a html form has been submitted [modified] Pin
tyjnfghnfgsdf27-Feb-10 10:13
tyjnfghnfgsdf27-Feb-10 10:13 
Questionstores files for my project Pin
jogisarge27-Feb-10 9:05
jogisarge27-Feb-10 9:05 
AnswerRe: stores files for my project Pin
AspDotNetDev27-Feb-10 11:43
protectorAspDotNetDev27-Feb-10 11:43 
AnswerRe: stores files for my project [modified] Pin
DaveyM6927-Feb-10 14:50
professionalDaveyM6927-Feb-10 14:50 
If using local file storage, I normally use the system defined folders as there shouldn't be any permission problems reading/writing from/to these.
C#
string userPath = 
    Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
string allUsersPath = 
    Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);


[Edit] There are some problems if a different user needs to overwrite an existing file in CommonApplicationData. See solution here[^]. [/Edit]
Dave

Tip: Passing values between objects using events (C#)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Why are you using VB6? Do you hate yourself? (Christian Graus)

modified on Sunday, February 28, 2010 12:21 AM

AnswerRe: stores files for my project Pin
Luc Pattyn27-Feb-10 14:59
sitebuilderLuc Pattyn27-Feb-10 14:59 
GeneralRe: stores files for my project Pin
DaveyM6927-Feb-10 15:01
professionalDaveyM6927-Feb-10 15:01 
GeneralRe: stores files for my project [modified] Pin
DaveyM6927-Feb-10 15:16
professionalDaveyM6927-Feb-10 15:16 
GeneralRe: stores files for my project Pin
Luc Pattyn27-Feb-10 15:23
sitebuilderLuc Pattyn27-Feb-10 15:23 
GeneralRe: stores files for my project Pin
DaveyM6927-Feb-10 15:30
professionalDaveyM6927-Feb-10 15:30 
GeneralRe: stores files for my project Pin
DaveyM6927-Feb-10 15:39
professionalDaveyM6927-Feb-10 15:39 
GeneralRe: stores files for my project Pin
Luc Pattyn27-Feb-10 15:45
sitebuilderLuc Pattyn27-Feb-10 15:45 
GeneralRe: stores files for my project Pin
DaveyM6927-Feb-10 15:50
professionalDaveyM6927-Feb-10 15:50 
GeneralRe: stores files for my project Pin
DaveyM6927-Feb-10 15:59
professionalDaveyM6927-Feb-10 15:59 
GeneralRe: stores files for my project Pin
Luc Pattyn27-Feb-10 16:30
sitebuilderLuc Pattyn27-Feb-10 16:30 
GeneralRe: stores files for my project Pin
DaveyM6927-Feb-10 17:57
professionalDaveyM6927-Feb-10 17:57 
GeneralRe: stores files for my project Pin
DaveyM6928-Feb-10 6:47
professionalDaveyM6928-Feb-10 6:47 
GeneralRe: stores files for my project Pin
Luc Pattyn27-Feb-10 15:46
sitebuilderLuc Pattyn27-Feb-10 15:46 
GeneralRe: stores files for my project Pin
DaveyM6927-Feb-10 15:52
professionalDaveyM6927-Feb-10 15:52 
AnswerRe: stores files for my project Pin
Not Active28-Feb-10 1:54
mentorNot Active28-Feb-10 1:54 
AnswerRe: stores files for my project Pin
DaveyM6928-Feb-10 6:46
professionalDaveyM6928-Feb-10 6:46 
Questionversion control software Pin
Khan Olid Mannan27-Feb-10 8:38
Khan Olid Mannan27-Feb-10 8:38 

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.