Click here to Skip to main content
15,880,725 members
Home / Discussions / C#
   

C#

 
GeneralRe: onclick event not triggering ! Pin
nitya_arysys24-Jan-06 1:36
nitya_arysys24-Jan-06 1:36 
AnswerRe: onclick event not triggering ! Pin
Guffa24-Jan-06 9:35
Guffa24-Jan-06 9:35 
GeneralRe: onclick event not triggering ! Pin
nitya_arysys25-Jan-06 2:33
nitya_arysys25-Jan-06 2:33 
Questionsort column in ultrawingrid Pin
Frank23123-Jan-06 0:02
Frank23123-Jan-06 0:02 
AnswerRe: sort column in ultrawingrid Pin
NassosReyzidis23-Jan-06 3:42
NassosReyzidis23-Jan-06 3:42 
QuestionPassing reference values to C++ functions Pin
madhusri22-Jan-06 23:27
madhusri22-Jan-06 23:27 
Questionis it possible?? Pin
imsathy22-Jan-06 23:25
imsathy22-Jan-06 23:25 
QuestionCustomizing config file Pin
Celemar8222-Jan-06 22:28
Celemar8222-Jan-06 22:28 
i'm trying to add my own custom section in my config file, i've found some articles on this in VB that work, but when i rewrite it into C# i get an error, can someone please help?


this is the config file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="myGroup">
<section name="myCustomSection"
type="System.Configuration.NameValueSectionHandler,
System, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"/>
</sectionGroup>
</configSections>

<myGroup>
<myCustomSection>
<add key="mykey" value="myvalue" />
</myCustomSection>
</myGroup>
</configuration>


this is my C# code:
NameValueCollection nvc = new NameValueCollection();
nvc = ((NameValueCollection)ConfigurationSettings.GetConfig("myGroup/myCustomSection"));
string Value = nvc["mykey"];


this is the error i get from line 2 of code:
An unhandled exception of type 'System.Configuration.ConfigurationException' occurred in system.dll

Additional information: Could not create System.Configuration.NameValueSectionHandler,
System, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089

Of all the things i've lost i miss my mind the most...!

-- modified at 4:29 Monday 23rd January, 2006
AnswerRe: Customizing config file Pin
tarasn23-Jan-06 0:07
tarasn23-Jan-06 0:07 
GeneralRe: Customizing config file Pin
Celemar8223-Jan-06 0:14
Celemar8223-Jan-06 0:14 
QuestionIf anyone needs this. Pin
M@dHatter22-Jan-06 20:47
M@dHatter22-Jan-06 20:47 
QuestionProgram in the tray does not allow to shutdown the computer Pin
curt_russel22-Jan-06 20:21
curt_russel22-Jan-06 20:21 
AnswerRe: Program in the tray does not allow to shutdown the computer Pin
Dave Kreskowiak23-Jan-06 6:04
mveDave Kreskowiak23-Jan-06 6:04 
GeneralRe: Program in the tray does not allow to shutdown the computer Pin
curt_russel23-Jan-06 20:18
curt_russel23-Jan-06 20:18 
GeneralRe: Program in the tray does not allow to shutdown the computer Pin
Dave Kreskowiak24-Jan-06 2:46
mveDave Kreskowiak24-Jan-06 2:46 
QuestionIs C# a pure object oriented language? Pin
vikas amin22-Jan-06 19:33
vikas amin22-Jan-06 19:33 
AnswerRe: Is C# a pure object oriented language? Pin
M@dHatter22-Jan-06 20:17
M@dHatter22-Jan-06 20:17 
AnswerRe: Is C# a pure object oriented language? Pin
Sebastian Schneider22-Jan-06 21:01
Sebastian Schneider22-Jan-06 21:01 
AnswerRe: Is C# a pure object oriented language? Pin
Guffa22-Jan-06 22:48
Guffa22-Jan-06 22:48 
QuestionRichtextBox Printing Urgent!!! Pin
AB777122-Jan-06 18:58
AB777122-Jan-06 18:58 
AnswerRe: RichtextBox Printing Urgent!!! Pin
Stephen Hewitt22-Jan-06 19:24
Stephen Hewitt22-Jan-06 19:24 
GeneralRe: RichtextBox Printing Urgent!!! Pin
AB777122-Jan-06 19:42
AB777122-Jan-06 19:42 
AnswerRe: RichtextBox Printing Urgent!!! Pin
mav.northwind22-Jan-06 20:05
mav.northwind22-Jan-06 20:05 
GeneralRe: RichtextBox Printing Urgent!!! Pin
AB777122-Jan-06 21:02
AB777122-Jan-06 21:02 
Questionhow to trigger child datalist event? Pin
raheeli22-Jan-06 17:25
raheeli22-Jan-06 17:25 

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.