settings

Update desktop "show window contents while dragging" setting programatically.

Hi All, One of my programs seems to be changing the Display Properties > Appearance > Effects > Show window contents while dragging setting to off every few hours. I'm not sure exactly which program, or when it happens. I have a number of programs that seem like likely culprits - wallpaper rotators, software for multiple monitors, mul...

-Xmx differences between applet and standalone Java process

I have an applet which needs more or less memory depending on how many data the client has. We usually recommend to use Java 1.6 latest version, but we actually support Java 1.5+ so we have a protection in the applet which shows a dialog box with a warning about "not enough memory" and instructions where to go to increase the memory. H...

Why is calling StringCollection from Settings slow?

I am writing a small .NET Windows Forms app, and I use the built-in Visual Studio settings to manage my programs config. I noticed an issue however that after I had added a StringCollection setting (to store a list of recently accessed documents), my program took eversoslightly longer to startup. I ran a StopWatch over the programs ini...

User settings XML serialization of an Object

I am trying to save a custom object as a user setting in a VB.net app. This object consists of a List(Of Pair(Of String, Object)). Pair is a custom class which has two read/write properties (a String and an Object). If I put simple types like int, string, datetime as the second value of my pair, the setting is saved without any problem....

Via CN700 video mode pruning

I have a system running Windows XPe with a CN700 graphics chipset and two monitors: an LCD panel and a VGA monitor with no EDID. The panel has a resolution of 1440 x 900, and I want to run the VGA monitor at this resolution too. I've created and loaded a monitor .inf file with the desired resolution of the VGA monitor. The LCD panel...

How do I change and/or move a class that has been serialized?

I've got a class in my project and I want to move and rename that class to somewhere else in the project's namespace. I tried simply moving it, but then the program won't deserialize any settings saved under Properties.Settings.Default for that setting. Is there a way I can move it without losing all of the user's settings? ...

Where do I put my Office Add-In configuration page(s)?

I'm writing a COM add-in for Word, Excel and PowerPoint. This add-in has some user-configurable settings (about a page full of them actually... or perhaps even more than a single page). What is the standard way of presenting these to the user? Through a custom page under Tools->Options? (how?) Under a custom button on a custom toolbar? A...

Turn autolock off from an application

Users want autolock turned off while using my navigation utility. Is it possible to control autolock from an application in iPhone SDK 3.0? ...

Updating bound controls to ApplicationSettings

I'm attempting to utilize the .NET 2.0 ApplicationSettings feature for the first time, and find it a bit... puzzling in some ways. I'm hoping someone can help me figure out where i'm going wrong. I have a generic settings class which i've implemented that is a subclass of ApplicationSettingsBase. I've implemented a property, and tagge...

Custom scope for .NET application settings

I can define my custom scope: [AttributeUsage(AttributeTargets.Property)] public sealed class SiteScopedSettingAttribute : SettingAttribute { } How do I use it in the Visual Studio Settings editor (make it available in the "Scope" combobox)? ...

What would be the best way to persist user-editable settings for a Windows Service?

I'm developing an application that's going to be implemented as a Windows Service and I was wondering what'd be the best way to deal with the different settings (at User and Application level). The thing is, I'm not completely familiar (yet) with all the available options, so in principle I'm favoring .NET's own System.Configuration (Con...

Better way for using settings in Spring.NET configuration file?

Is there a better way for using settings (generated by Visial Stidio Settings editor) in Spring.NET configuration file than using PropertyRetrievingFactoryObject: <object id="myUri" type="Spring.Objects.Factory.Config.PropertyRetrievingFactoryObject, Spring.Core"> <property name="TargetObject"> <object type="Properties.Setti...

How is your JVM 6 memory setting for JBOSS AS 5 ?

I'm using an ICEFaces application that runs over JBOSS, my currently heapsize is set to -Xms1024m –Xmx1024m -XX:MaxPermSize=256m what is your recommendation to adjust memory parameters for JBOSS AS 5 (5.0.1 GA) JVM 6? ...

Reading dll.config (not app.config!) from a plugin module.

I am writing a C# .NET 2.0 .dll that is a plug in to a Larger application. The visual studio project for my module has a app.config file which is copied to a MyProj.dll.config along side of MyProj.dll. The plan is that MyProj.dll.config will be edited after the .dll is deployed. I am trying to read my settings from that modified loc...

XCode Edit Project Settings vs Edit Active Target

What is the difference between these 2 options under the Project menu drop-down? Normally I just adjusted things in the Project Settings (which adjusts the info.plist, right?). Today I needed to change the name of my project. Initially i changed the Product_Name from the Edit Project Settings -> Build window. But that didnt change the n...

Windows.Forms Visual Studio C# - Why would/should I use a settings windows instead of saving in a file?

Why would/should I use a ".settings" file instead of taking the information and storing it in a flat file? How do I access and modify the settings from this window from my application windows. Do I need to create an instance of the file or is it static? ...

.NET Property Grid - setting Browsable (bool) using App.config

Hello I would like to be able to set the visibility of a property on my property grid using App.config. I have tried : [Browsable(bool.Parse(Sytem.Configuration.ConfigurationSettings.AppSettings["testBool"]))] However Visual Studio 2008 would give me an error "An attribute argument must be a constant expression, typeof expression or a...

which Maven settings.xml files?

How do I use maven command line to determine which settings.xml file Maven is picking up? ...

How to deploy a desktop .Net application with custom settings per user

This seems like a simple question but the intergoogles have not been kind. I have a C# desktop application. There are certain properties that need to be customized per customer, such as each customer's organization's name, that are otherwise independent of the actual functionality of the application and therefore do not need to be comp...

What accounts to use when installing SQL Server 2008 Developer

I am installing SQL Server 2008 Developer here, and on the Server Configuration step of the installation it asks me about Service Accounts. What do I choose here? I can see the available ones in the screen shot, although on most of them I can only select two or three of those. When I click the Use the same account for all SQL Server 200...