Click here to Skip to main content
15,914,419 members
Home / Discussions / C#
   

C#

 
GeneralRe: HowTo: get version number? Pin
ednrgc31-Oct-06 5:39
ednrgc31-Oct-06 5:39 
QuestionPosition of Control on Form Pin
Russell Jones31-Oct-06 2:54
Russell Jones31-Oct-06 2:54 
AnswerRe: Position of Control on Form Pin
Martin#31-Oct-06 3:07
Martin#31-Oct-06 3:07 
GeneralRe: Position of Control on Form Pin
Russell Jones31-Oct-06 4:18
Russell Jones31-Oct-06 4:18 
QuestionFormatting labels Pin
Smon the Vidd31-Oct-06 2:04
Smon the Vidd31-Oct-06 2:04 
AnswerRe: Formatting labels Pin
sam#31-Oct-06 2:20
sam#31-Oct-06 2:20 
GeneralRe: Formatting labels Pin
Smon the Vidd31-Oct-06 2:28
Smon the Vidd31-Oct-06 2:28 
QuestionSystem.Configuration.Configuration.Save() does not always work Pin
Charles Jenkins31-Oct-06 2:04
Charles Jenkins31-Oct-06 2:04 
Fair warning:

I am trying to learn the new .NET way of saving configuration information, and I have found that the Configuration class's Save() method does not always work, though it raises no exceptions.

When I run my app by double-clicking the .exe file, it can save its configuration. But when running under the VS2005 debugger, not only is the configuration stored in a different file (app.vshost.exe.config instead of app.exe.config), but also Config.Save() will usually fail without raising any exception. In order to be able to save the config, I have to delete app.vshost.exe.config so that my app will recreate it.

Not to be bitchy, but I do find the irony humorous.
1. We used to write text (ini) files.
2. MS told us to use the registry instead.
3. Then MS told us never to use the registry, but use text (xml) files instead.
4. They provided the .NET 1.x way of doing things, which now results in "you shouldn't be doing this" warning messages.
5. They provided the .NET 2.x way of doing things, which (oh by the way) does not work dependably, at least under the debugger.

Is there any consensus as to what is really, truly the RIGHT way to save configuration information?

--

Charles Jenkins

"The accumulation of all powers, legislative, executive, and judiciary, in the same hands...may justly be pronounced the very definition of tyranny." "If tyranny and oppression come to this land, it will be in the guise of fighting a foreign enemy."

-- James Madison, Fourth President of the United States
Questionhow can i get currser postion Pin
vipinpaliwal198031-Oct-06 2:01
vipinpaliwal198031-Oct-06 2:01 
AnswerRe: how can i get currser postion Pin
sam#31-Oct-06 2:14
sam#31-Oct-06 2:14 
QuestionHow to transform JPG-File to PDF-File? Pin
jason_mf31-Oct-06 1:49
jason_mf31-Oct-06 1:49 
AnswerRe: How to transform JPG-File to PDF-File? Pin
Christian Graus31-Oct-06 2:09
protectorChristian Graus31-Oct-06 2:09 
GeneralRe: How to transform JPG-File to PDF-File? Pin
Russell Jones31-Oct-06 2:56
Russell Jones31-Oct-06 2:56 
Questioncan we have an arraylist as a member in C# Pin
kalaveer31-Oct-06 1:26
kalaveer31-Oct-06 1:26 
AnswerRe: can we have an arraylist as a member in C# Pin
Christian Graus31-Oct-06 1:28
protectorChristian Graus31-Oct-06 1:28 
GeneralRe: can we have an arraylist as a member in C# Pin
kalaveer31-Oct-06 1:47
kalaveer31-Oct-06 1:47 
GeneralRe: can we have an arraylist as a member in C# Pin
Guffa31-Oct-06 6:44
Guffa31-Oct-06 6:44 
AnswerRe: can we have an arraylist as a member in C# Pin
Elina Blank31-Oct-06 1:47
sitebuilderElina Blank31-Oct-06 1:47 
GeneralRe: can we have an arraylist as a member in C# Pin
kalaveer31-Oct-06 2:08
kalaveer31-Oct-06 2:08 
GeneralRe: can we have an arraylist as a member in C# Pin
Christian Graus31-Oct-06 2:16
protectorChristian Graus31-Oct-06 2:16 
GeneralRe: can we have an arraylist as a member in C# Pin
Elina Blank31-Oct-06 2:22
sitebuilderElina Blank31-Oct-06 2:22 
Questionlistview displaymember prpperty problem (Pls Help) Pin
vipinpaliwal198031-Oct-06 1:02
vipinpaliwal198031-Oct-06 1:02 
AnswerRe: listview displaymember prpperty problem (Pls Help) Pin
Christian Graus31-Oct-06 1:23
protectorChristian Graus31-Oct-06 1:23 
GeneralRe: listview displaymember prpperty problem (Pls Help) Pin
vipinpaliwal198031-Oct-06 1:28
vipinpaliwal198031-Oct-06 1:28 
AnswerRe: listview displaymember prpperty problem (Pls Help) [modified] Pin
rah_sin31-Oct-06 1:29
professionalrah_sin31-Oct-06 1:29 

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.