application (14,160)


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 thread i…


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 manu…


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

Closed.This question needs to be more focused.It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by…


c# - Automatically update version number

I would like the version property of my application to be incremented for each build but I'm not sure on how to enable this functionality in Visual Studio(2005/2008). I have tried to specify the Assem…


sql server - Editing database records by multiple users

I have designed database tables(normalised, on an MS SQL server) and created a standalone windows front end for an application that will be used by a handful of users to add and edit information. We…




how example windows net web for from tutorial with not