Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
GeneralC# Theory question Pin
.gonad5-Jul-03 2:37
.gonad5-Jul-03 2:37 
GeneralRe: C# Theory question Pin
leppie5-Jul-03 2:46
leppie5-Jul-03 2:46 
GeneralRe: C# Theory question Pin
.gonad5-Jul-03 3:11
.gonad5-Jul-03 3:11 
GeneralRe: C# Theory question Pin
Nathan Blomquist5-Jul-03 4:08
Nathan Blomquist5-Jul-03 4:08 
GeneralRe: C# Theory question Pin
.gonad5-Jul-03 6:40
.gonad5-Jul-03 6:40 
GeneralRe: C# Theory question Pin
Nathan Blomquist6-Jul-03 7:52
Nathan Blomquist6-Jul-03 7:52 
GeneralRe: C# Theory question Pin
leppie5-Jul-03 10:12
leppie5-Jul-03 10:12 
GeneralRe: C# Theory question Pin
James T. Johnson6-Jul-03 4:04
James T. Johnson6-Jul-03 4:04 
leppie wrote:
Its generally better to place things like your own SQL/Access connectiong string in the machine.config file.

I would advise against this for a couple reasons:

  1. Your app will break if you move to a new version of the framework, but forget to update the machine.config for that version of the framework. Or worse, another application does the same thing, but storing a different connection string.
  2. You are taking something that should be local, and making it global. You wouldn't want your connection strings entered into another application so you should keep them local to the apps that need it.
Instead you should store the read-only setting in the app.config file. If you expect to make more applications using the same connection string then you would be better off creating your own settings class and storing that in the user's application directory, or the common application directory if the settings should apply to everyone.

James

"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him

GeneralRe: C# Theory question Pin
leppie6-Jul-03 8:26
leppie6-Jul-03 8:26 
GeneralDisplaced text Pin
Zibar5-Jul-03 1:07
sussZibar5-Jul-03 1:07 
GeneralRe: Displaced text Pin
leppie5-Jul-03 2:43
leppie5-Jul-03 2:43 
GeneralGame development Pin
Xedecimal4-Jul-03 21:11
Xedecimal4-Jul-03 21:11 
GeneralRunning another application in C# Pin
pdunn4-Jul-03 21:00
pdunn4-Jul-03 21:00 
GeneralRe: Running another application in C# Pin
J. Dunlap4-Jul-03 21:35
J. Dunlap4-Jul-03 21:35 
GeneralRe: Running another application in C# Pin
MrEyes7-Jul-03 6:43
MrEyes7-Jul-03 6:43 
Questiondrag-drop dash line ?? Pin
azusakt4-Jul-03 15:27
azusakt4-Jul-03 15:27 
AnswerRe: drag-drop dash line ?? Pin
leppie5-Jul-03 0:35
leppie5-Jul-03 0:35 
GeneralRe: drag-drop dash line ?? Pin
azusakt6-Jul-03 15:43
azusakt6-Jul-03 15:43 
GeneralBeta Version of KingTermite.Net Pin
KingTermite4-Jul-03 15:07
KingTermite4-Jul-03 15:07 
Generalsend user event for C# to C++ Pin
troels_sorensen4-Jul-03 13:11
troels_sorensen4-Jul-03 13:11 
GeneralRe: send user event for C# to C++ Pin
Anonymous8-Jul-03 4:19
Anonymous8-Jul-03 4:19 
GeneralRe: send user event for C# to C++ Pin
Troels_soerensen8-Jul-03 4:21
sussTroels_soerensen8-Jul-03 4:21 
Questiondrawing part of component outside parent window? Pin
misterbear4-Jul-03 10:36
misterbear4-Jul-03 10:36 
GeneralC# question Pin
ClintChin4-Jul-03 8:38
ClintChin4-Jul-03 8:38 
GeneralRe: C# question Pin
leppie4-Jul-03 10:47
leppie4-Jul-03 10:47 

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.