Click here to Skip to main content
15,909,605 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: How to open only one application with one exe ?` Pin
N a v a n e e t h31-Dec-07 1:42
N a v a n e e t h31-Dec-07 1:42 
AnswerRe: How to open only one application with one exe ?` Pin
Pete O'Hanlon1-Jan-08 10:53
mvePete O'Hanlon1-Jan-08 10:53 
GeneralRe: How to open only one application with one exe ?` Pin
Patrick Etc.1-Jan-08 12:18
Patrick Etc.1-Jan-08 12:18 
GeneralRe: How to open only one application with one exe ?` Pin
Pete O'Hanlon1-Jan-08 22:38
mvePete O'Hanlon1-Jan-08 22:38 
GeneralAmazon SQS REST API Date header issue Pin
eggie528-Dec-07 13:27
eggie528-Dec-07 13:27 
GeneralRe: Amazon SQS REST API Date header issue Pin
Paul Conrad31-Dec-07 9:18
professionalPaul Conrad31-Dec-07 9:18 
Questionpublishing resource folder [modified] Pin
ZenyukIV28-Dec-07 3:25
ZenyukIV28-Dec-07 3:25 
GeneralRe: publishing resource folder Pin
ZenyukIV3-Jan-08 20:21
ZenyukIV3-Jan-08 20:21 
The solution is to use Application.UserAppDataPath instead of Application.StartupPath

    internal sealed partial class Settings {<br />
        <br />
        public Settings() {<br />
            this.SettingsLoaded += new System.Configuration.SettingsLoadedEventHandler(Settings_SettingsLoaded);<br />
        }<br />
<br />
void Settings_SettingsLoaded( object sender, System.Configuration.SettingsLoadedEventArgs e ) {<br />
            String dataDirectory;<br />
            if (( AppDomain.CurrentDomain.DomainManager != null ) && AppDomain.CurrentDomain.DomainManager.ToString().Contains("VSHost")) {<br />
                dataDirectory = Application.StartupPath;<br />
            }<br />
            else {<br />
                dataDirectory = <big>Application.UserAppDataPath</big>;<br />
            }<br />
            this["test1ConnectionString"] = Settings.Default.test1ConnectionString.Replace(".\\", dataDirectory + "\\");

}

Thanks to http://blogs.msdn.com/smartclientdata/archive/2005/07/15/439008.aspx[^]
QuestionQuestion about crystal report. Pin
fantasy121527-Dec-07 22:28
fantasy121527-Dec-07 22:28 
GeneralRe: Question about crystal report. Pin
joomlathug28-Dec-07 0:30
joomlathug28-Dec-07 0:30 
QuestionRe: Question about crystal report. Pin
fantasy121530-Dec-07 19:50
fantasy121530-Dec-07 19:50 
GeneralRe: Question about crystal report. Pin
Paul Conrad28-Dec-07 7:05
professionalPaul Conrad28-Dec-07 7:05 
QuestionPainting at Non Clent Area Pin
Nagaraju_Focus27-Dec-07 20:30
Nagaraju_Focus27-Dec-07 20:30 
GeneralRe: Painting at Non Clent Area Pin
Paul Conrad31-Dec-07 9:19
professionalPaul Conrad31-Dec-07 9:19 
GeneralConnecting to multiple Services from a WCF Client. Pin
hijacker917327-Dec-07 16:53
hijacker917327-Dec-07 16:53 
GeneralSystem.Net.PeerToPeer Pin
sabrown10026-Dec-07 6:04
sabrown10026-Dec-07 6:04 
GeneralRe: System.Net.PeerToPeer Pin
KaptinKrunch26-Dec-07 8:33
KaptinKrunch26-Dec-07 8:33 
GeneralRe: System.Net.PeerToPeer Pin
Paul Conrad26-Dec-07 9:48
professionalPaul Conrad26-Dec-07 9:48 
GeneralFatal Error When Running .Net Application from UNC FileShare Pin
DotNetWWW25-Dec-07 22:16
DotNetWWW25-Dec-07 22:16 
GeneralRe: Fatal Error When Running .Net Application from UNC FileShare Pin
Dave Kreskowiak26-Dec-07 8:37
mveDave Kreskowiak26-Dec-07 8:37 
GeneralRe: Fatal Error When Running .Net Application from UNC FileShare [modified] Pin
DotNetWWW26-Dec-07 18:39
DotNetWWW26-Dec-07 18:39 
GeneralWPF, Textures and large images Pin
Robert Rohde24-Dec-07 23:38
Robert Rohde24-Dec-07 23:38 
QuestionHow to change registry key permissons from a C# Pin
André Ziegler24-Dec-07 6:14
André Ziegler24-Dec-07 6:14 
AnswerRe: How to change registry key permissons from a C# Pin
Scott Dorman25-Dec-07 4:25
professionalScott Dorman25-Dec-07 4:25 
GeneralRe: How to change registry key permissons from a C# Pin
André Ziegler25-Dec-07 6:49
André Ziegler25-Dec-07 6:49 

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.