No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
6 Posted Topics
[COLOR="Red"]I am unable to save modification of ' app.config ' file.[/COLOR] Here is the code. [COLOR="Green"]Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); config.AppSettings.Settings["MDI"].Value= "1"; config.Save( ConfigurationSaveMode.Full ); ConfigurationManager.RefreshSection("appSettings");[/COLOR] There is no issue of reading app.config file. I am reading proper values .But if changed it ,it is not updating the file. And I …
I have a static function that write to a log file . In my project I am already using multithreading , hense I m getting exception that 'process can't access file because it is being used by another process ' I want to mutex that code so that if one …
I have added one [B]Status label[/B] and a [B]Progressbar [/B]in a [B]StatuStrip[/B]. But as soon as text length of Statuslabel increases/decreases the Progressbar changes it's position. I want to wrap text of Statuslabel in specified length of Statuslabel though text length is greater than it's length so that Progressbar will …
When I am going to modify hashtable data it is giving me the exception.`"Collection was modified; enumeration operation may not execute"` Here is the code.. foreach (DictionaryEntry Item in hashtable) { switch(Item.key.ToString()) { case "Color": { hashtable["Color"]="ffffff"; break; } case "Width": { hashtable["Width"]="40"; break; } } } My qustion is …
In my program ,am using ThreadPool for threading. In which function creating progressbar is in one thread and function that changing visibility of progressbar is in another thread. then following exception occurring... [COLOR="Red"]Controls created on one thread cannot be parented to a control on a different thread[/COLOR]
Hi, When I call a method(present in external DLL) through [B]reflection [/B]which having [B]no parameters[/B] and [B]void return[/B] ,it get called fine but in same DLL when I call a method which have [B]no parameters[/B] but [B]return type Datatable[/B] then I got the [B]'TargetInvocation'[/B] exception. Can anybody help me ?
The End.
nitin2010