Click here to Skip to main content
15,905,028 members
Home / Discussions / C#
   

C#

 
GeneralRe: Displaying a second user control in a form Pin
J. Dunlap5-Jul-03 19:39
J. Dunlap5-Jul-03 19:39 
GeneralRe: Displaying a second user control in a form Pin
frogb0x5-Jul-03 19:52
frogb0x5-Jul-03 19:52 
GeneralRe: Displaying a second user control in a form Pin
James T. Johnson6-Jul-03 2:39
James T. Johnson6-Jul-03 2:39 
GeneralRe: Displaying a second user control in a form Pin
frogb0x6-Jul-03 17:16
frogb0x6-Jul-03 17:16 
GeneralShowing what folders exist Pin
eggie55-Jul-03 19:18
eggie55-Jul-03 19:18 
GeneralRe: Showing what folders exist Pin
James T. Johnson6-Jul-03 2:44
James T. Johnson6-Jul-03 2:44 
GeneralRe: Showing what folders exist Pin
eggie56-Jul-03 10:13
eggie56-Jul-03 10:13 
GeneralRe: Showing what folders exist Pin
MrEyes7-Jul-03 6:38
MrEyes7-Jul-03 6:38 
GeneralRe: Showing what folders exist Pin
eggie57-Jul-03 10:54
eggie57-Jul-03 10:54 
GeneralRe: Showing what folders exist Pin
eggie57-Jul-03 11:05
eggie57-Jul-03 11:05 
GeneralRe: Showing what folders exist Pin
MrEyes7-Jul-03 23:08
MrEyes7-Jul-03 23:08 
GeneralApi Question. Pin
jtmtv185-Jul-03 11:45
jtmtv185-Jul-03 11:45 
GeneralRe: Api Question. Pin
James T. Johnson6-Jul-03 2:48
James T. Johnson6-Jul-03 2:48 
GeneralRe: Api Question. Pin
jtmtv189-Jul-03 15:50
jtmtv189-Jul-03 15:50 
GeneralMDI child's Enter leave called multiple times Pin
Mayank Goyal5-Jul-03 2:58
Mayank Goyal5-Jul-03 2:58 
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 

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.