c# - Why can't you bind the Size of a windows form to ApplicationSettings?

c# - Why can't you bind the Size of a windows form to ApplicationSettings?

Update: Solved, with code I got it working, see my answer below for the code... Original Post As Tundey pointed out in his answer to my last question, you can bind nearly everything about a windows f…


linux - A way to determine a process's “real” memory usage, i.e. private dirty RSS?

Tools like 'ps' and 'top' report various kinds of memory usages, such as the VM size and the Resident Set Size. However, none of those are the "real" memory usage: Program code is shared between mult…


c# - How do you check for permissions to write to a directory or file?

I got a program that writes some data to a file using a method like the one below. public void ExportToFile(string filename){using(FileStream fstream=new FileStream(filename,FileMode.Create)…


c++ - Where to put common writable application files?

I thought that CSIDL_COMMON_APPDATA\company\product should be the place to put files that are common for all users of the application and that the application can modify, however, on Vista this is a…


How to write an Excel workbook to a MemoryStream in.NET?

How do I write an Excel workbook to a MemoryStream without first saving it to the file system? All options within the Microsoft.Office.Interop.Excel.WorkBook save options take a filename.…


c# - how can you easily check if access is denied for a file in.NET?

Basically, I would like to check if I have rights to open the file before I actually try to open it; I do not want to use a try/catch for this check unless I have to. Is there a file access property I…


Deploying sqlite DB on iPhone app upgrade

I'm using sqlite as a datasource in an iPhone app. I have two questions regarding application upgrades. 1.) The data is all config/nontransactional. Meaning, it is readonly. When I update/add confi…


linux - How do you determine what bash ls colours mean?

When you perform ls in a bash shell, sometimes there are colours to indicate different resource types, and you can enable/control this with the--color argument. But neither the man page nor Google is…



macos - How can I make directory writable?

How can I make a directory writable, from the OS X terminal?…


C#: Check if a file is not locked and writable

I want to check if a list of files is in use or not writable before I start replacing files. Sure I know that the time from the file-check and the file-copy there is a chance that one or more files is…




not file directory permissions make the permission error how create