application (13,233)


How do I calculate someone's age in C#?

How do I calculate someone's age in C#?

Given a DateTime representing a person's birthday, how do I calculate their age in years?…


Throw an error in a MySQL trigger

If I have a trigger before the update on a table, how can I throw an error that prevents the update on that table?…


c# Reliable timer in a console application

I am aware that in.NET there are three timer types(see Comparing the Timer Classes in the.NET Framework Class Library). I have chosen a threaded timer as the other types can drift if the main threa…


Microsoft Office 2007 file type, Mime types and identifying characters

Where can I find a list of all of the MIME types and the identifying characters for Microsoft Office 2007 files? I have an upload form that is restricting uploads based on the extensions and identify…


flex SQLStatement.execute()-multiple queries in one statement

I've written a database generation script in SQL and want to execute it in my Adobe AIR application: Create Table tRole(roleID integer Primary Key,roleName varchar(40)); Create Table tFile…


Register Windows program with the mailto protocol programmatically

How do I make it so mailto: links will be registered with my program? How would I then handle that event in my program? Most of the solutions I found from a quick Google search are how to do this man…


c GTK implementation of MessageBox

I have been trying to implement Win32's MessageBox using GTK. The app using SDL/OpenGL, so this isn't a GTK app. I handle the initialisation(gtk_init) sort of stuff inside the MessageBox function a…



c# WinForms ComboBox data binding gotcha

Assume you are doing something like the following List<string> myitems=new List<string>{"Item 1", "Item 2", "Item 3"}; ComboBox box=new ComboBox(); box.DataSource=myitems; Combo…


security The definitive guide to form-based website authentication

Form-based authentication for websites We believe that Stack Overflow should not just be a resource for very specific technical questions, but also for general guidelines on how to solve variations on…


c# How to write to Web.Config in Medium Trust?

Uploading my first decently sized web app to my shared host provided me with a fresh set of challenges, by which I mean, sleepless nights. The issue was that I had most certainly not developed my app…




how example windows net web for from tutorial with not