Click here to Skip to main content
15,900,724 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Open Source Application with good OO Design Pin
lonforce11-Apr-08 0:49
lonforce11-Apr-08 0:49 
QuestionHow to properly pre-load assemblies (in background) to prevent delay on first use? Pin
User 32754409-Apr-08 23:17
User 32754409-Apr-08 23:17 
AnswerRe: How to properly pre-load assemblies (in background) to prevent delay on first use? Pin
led mike10-Apr-08 5:06
led mike10-Apr-08 5:06 
GeneralRe: How to properly pre-load assemblies (in background) to prevent delay on first use? Pin
User 327544013-Apr-08 21:11
User 327544013-Apr-08 21:11 
QuestionHow to modify the aseembly Pin
sujithkumarsl9-Apr-08 18:35
sujithkumarsl9-Apr-08 18:35 
GeneralUsing "Settings.settings" files with multiple assemblies (a windows service and a windows form config app) Pin
blak3r9-Apr-08 2:42
blak3r9-Apr-08 2:42 
GeneralRe: Using "Settings.settings" files with multiple assemblies (a windows service and a windows form config app) Pin
led mike9-Apr-08 4:56
led mike9-Apr-08 4:56 
GeneralRe: Using "Settings.settings" files with multiple assemblies (a windows service and a windows form config app) Pin
blak3r9-Apr-08 6:42
blak3r9-Apr-08 6:42 
The settings files which are created when you create a new "Settings File" from the IDE are of type System.Configuration.ApplicationSettingsBase.

The link you pointed me to i had read before. I do not know how (if it is even possible) to use the static ConfigurationManager class in conjunction with ApplicationSettingBase.

Code sample from the "documentation".
<br />
// Modify a custom section.<br />
// Show how to use the<br />
// OpenExeConfiguration(ConfigurationUserLevel, <br />
// config file path) method.<br />
static void ModifyCustomSection2()<br />
{<br />
    // Get the application configuration file.<br />
    System.Configuration.Configuration config =<br />
         ConfigurationManager.OpenExeConfiguration(<br />
        ConfigurationUserLevel.None);<br />
<br />
    CustomSection custSection =<br />
       config.Sections[customSectionName] as CustomSection;<br />
<br />
    custSection.FileName = "anotherName.txt";<br />
    custSection.MaxIdleTime = new TimeSpan(0, 20, 0);<br />
    custSection.MaxUsers = custSection.MaxUsers + 20;<br />
<br />
    if (!custSection.ElementInformation.IsLocked)<br />
        config.Save();<br />
    else<br />
        Console.WriteLine("Section was locked, could not update.");<br />


Example of designer generated Settings class.
<br />
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]  [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")]<br />
    internal sealed partial class SettingsEmail : global::System.Configuration.ApplicationSettingsBase {<br />
        <br />
        private static SettingsEmail defaultInstance = ((SettingsEmail)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new SettingsEmail())));<br />


http://www.blakerobertson.com

GeneralRe: Using "Settings.settings" files with multiple assemblies (a windows service and a windows form config app) Pin
blak3r14-Apr-08 16:27
blak3r14-Apr-08 16:27 
GeneralIntegrating Google Earth to my "windows application" Pin
Member 38458158-Apr-08 23:23
Member 38458158-Apr-08 23:23 
GeneralRe: Integrating Google Earth to my "windows application" Pin
led mike9-Apr-08 4:51
led mike9-Apr-08 4:51 
GeneralIntegrating Google Earth to my "windows application" Pin
Member 38458159-Apr-08 19:00
Member 38458159-Apr-08 19:00 
GeneralMaximum connection between client and remoting server. Pin
manikandanid8-Apr-08 19:18
manikandanid8-Apr-08 19:18 
GeneralRe: Maximum connection between client and remoting server. Pin
Dave Kreskowiak9-Apr-08 6:42
mveDave Kreskowiak9-Apr-08 6:42 
GeneralRe: Maximum connection between client and remoting server. Pin
manikandanid9-Apr-08 22:32
manikandanid9-Apr-08 22:32 
GeneralRe: Maximum connection between client and remoting server. Pin
Dave Kreskowiak10-Apr-08 1:46
mveDave Kreskowiak10-Apr-08 1:46 
GeneralSystem.IO.Ports.SerialPort memory issue on WINCE 5.0 device using .Net CF 3.5 Pin
SeanBryant8-Apr-08 14:16
SeanBryant8-Apr-08 14:16 
GeneralRe: System.IO.Ports.SerialPort memory issue on WINCE 5.0 device using .Net CF 3.5 Pin
Luc Pattyn8-Apr-08 14:39
sitebuilderLuc Pattyn8-Apr-08 14:39 
QuestionDiscover private key with value and hashed value? Pin
Mark J. Miller8-Apr-08 4:43
Mark J. Miller8-Apr-08 4:43 
GeneralRe: Discover private key with value and hashed value? Pin
Dave Kreskowiak8-Apr-08 7:11
mveDave Kreskowiak8-Apr-08 7:11 
GeneralRe: Discover private key with value and hashed value? Pin
Mark J. Miller8-Apr-08 7:17
Mark J. Miller8-Apr-08 7:17 
GeneralRe: Discover private key with value and hashed value? Pin
Dave Kreskowiak8-Apr-08 8:10
mveDave Kreskowiak8-Apr-08 8:10 
GeneralRe: Discover private key with value and hashed value? Pin
Mark J. Miller8-Apr-08 8:18
Mark J. Miller8-Apr-08 8:18 
GeneralRe: Discover private key with value and hashed value? Pin
Mark Churchill10-Apr-08 20:00
Mark Churchill10-Apr-08 20:00 
QuestionIs there a easy Forum creator that can be easily integrated into a .NET environment? Pin
humblepgmr8-Apr-08 3:54
humblepgmr8-Apr-08 3:54 

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.